node/test/js-native-api
Michael Dawson 79b2c9a371 node-api: handle pending exception in cb wrapper
fixes: https://github.com/nodejs/node-addon-api/issues/1025

The functionreference test from the node-api tests
was reporting a failed v8 check when Node.js was compiled
as debug. The failure was because an exception was
pending but the C++ wrappers were returning
a return value that was invalid.

Signed-off-by: Michael Dawson <mdawson@devrus.com>

PR-URL: https://github.com/nodejs/node/pull/39476
Fixes: https://github.com/nodejs/node-addon-api/issues/1025
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2021-08-03 16:38:45 -04:00
..
2_function_arguments test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
3_callbacks test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
4_object_factory test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
5_function_factory test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
6_object_wrap test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
7_factory_wrap test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
8_passing_wrapped test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
test_array test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test_bigint test: call functions internally 2021-05-07 15:17:44 -07:00
test_constructor test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_conversions test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_dataview test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_date test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_error test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_exception node-api: rtn pending excep on napi_new_instance 2021-06-04 16:38:06 -04:00
test_function node-api: handle pending exception in cb wrapper 2021-08-03 16:38:45 -04:00
test_general test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test_handle_scope test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_instance_data test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_new_target test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
test_number test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_object test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test_promise test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_properties test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_reference test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_reference_double_free node-api: force env shutdown deferring behavior 2021-02-18 20:31:03 -08:00
test_string node-api: avoid crashing on passed-in null string 2021-06-11 09:01:22 -07:00
test_symbol test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_typedarray test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
.gitignore
common.c test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
common.h test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
entry_point.c
testcfg.py