0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/node-api
Anna Henningsen d11b5382d6 test: use assert() in N-API async test
The `Execute()` callback is not allowed to call into JS, so
we should use `assert()` instead of potentially throwing JS errors.

PR-URL: https://github.com/nodejs/node/pull/28423
Fixes: https://github.com/nodejs/help/issues/1998
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2019-06-28 04:56:34 +02:00
..
1_hello_world worker: improve integration with native addons 2019-02-22 21:42:09 +01:00
test_async test: use assert() in N-API async test 2019-06-28 04:56:34 +02:00
test_buffer n-api: defer Buffer finalizer with SetImmediate 2019-06-14 13:03:12 +02:00
test_callback_scope
test_cleanup_hook
test_env_sharing
test_exception n-api: defer Buffer finalizer with SetImmediate 2019-06-14 13:03:12 +02:00
test_fatal
test_fatal_exception
test_general
test_make_callback n-api: do not require JS Context for napi_async_destroy() 2019-04-24 21:38:39 +02:00
test_make_callback_recurse
test_null_init
test_policy test: cover import of a *.node file with a policy manifest 2019-05-30 15:38:54 +02:00
test_threadsafe_function n-api: make func argument of napi_create_threadsafe_function optional 2019-06-21 20:23:22 -06:00
test_uv_loop src: de-lint header usage 2019-03-12 09:57:19 -04:00
test_worker_terminate worker: improve integration with native addons 2019-02-22 21:42:09 +01:00
.gitignore
node-api.status test: remove flaky designation for test_threadsafe_function 2019-03-04 11:09:47 -08:00
testcfg.py