node/test/addons
garygsc 79faa87502
test: use arrow functions in addons tests
Convert all anonymous callback functions in `test/addons/**/*.js`
to use arrow functions, except for those in
`test/addons/make-callback/test.js` (which reference `this`)

`writing-tests.md` states to use arrow functions when appropriate.

PR-URL: https://github.com/nodejs/node/pull/30131
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
2019-11-30 18:08:59 +01:00
..
async-hello-world test: use arrow functions in addons tests 2019-11-30 18:08:59 +01:00
async-hooks-id test: replaced anonymous fn with arrow syntax 2019-02-14 00:06:05 +01:00
async-hooks-promise test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
async-resource test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
buffer-free-callback test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
callback-scope test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
dlopen-ping-pong src: add file name to 'Module did not self-register' error 2019-11-19 16:03:55 +01:00
errno-exception test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
force-context-aware test: simplify force-context-aware test 2019-09-29 08:42:08 -04:00
heap-profiler test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
hello-world test: make exported method static 2019-08-15 22:58:40 -07:00
hello-world-function-export test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
load-long-path test: use arrow functions in addons tests 2019-11-30 18:08:59 +01:00
make-callback test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
make-callback-domain-warning test: use arrow functions in addons tests 2019-11-30 18:08:59 +01:00
make-callback-recurse test: use arrow functions in addons tests 2019-11-30 18:08:59 +01:00
new-target test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
node-module-version test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
non-node-context test: fix ineffective error tests 2019-04-24 10:07:09 +02:00
not-a-binding src: add file name to 'Module did not self-register' error 2019-11-19 16:03:55 +01:00
null-buffer-neuter test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
openssl-binding src: migrate off ArrayBuffer::GetContents 2019-11-12 06:29:23 +01:00
openssl-client-cert-engine test: use arrow functions in addons tests 2019-11-30 18:08:59 +01:00
openssl-key-engine test: use arrow functions in addons tests 2019-11-30 18:08:59 +01:00
parse-encoding test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
register-signal-handler test: add addon tests for `RegisterSignalHandler()` 2019-06-14 19:11:42 +02:00
repl-domain-abort test: use arrow functions in addons tests 2019-11-30 18:08:59 +01:00
stringbytes-external-exceed-max test: use arrow functions in addons tests 2019-11-30 18:08:59 +01:00
symlinked-module test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
uv-handle-leak test: make sure vtable is generated in addon test with LTO 2019-06-07 05:20:40 +02:00
worker-addon report: modify getReport() to return an Object 2019-07-12 14:48:09 -07:00
worker-buffer-callback buffer: release buffers with free callbacks on env exit 2019-11-30 02:02:50 +01:00
zlib-binding src: migrate off ArrayBuffer::GetContents 2019-11-12 06:29:23 +01:00
.gitignore Revert "build,test: make building addon tests less fragile" 2018-01-25 08:18:24 +11:00
addon.status test: specialize OOM check for AIX 2019-07-27 16:03:43 -07:00
common.gypi test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
testcfg.py