node/test/node-api/test_async
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
..
binding.gyp test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_async.cc test: use assert() in N-API async test 2019-06-28 04:56:34 +02:00
test-async-hooks.js test: partition N-API tests 2018-12-04 13:58:17 -08:00
test-loop.js test: partition N-API tests 2018-12-04 13:58:17 -08:00
test-uncaught.js test: partition N-API tests 2018-12-04 13:58:17 -08:00
test.js test: partition N-API tests 2018-12-04 13:58:17 -08:00