node/test/js-native-api
Gabriel Schulhof 19fa9f1bc4 node-api: add status napi_cannot_run_js
Add the new status in order to distinguish a state wherein an exception
is pending from one wherein the engine is unable to execute JS. We take
advantage of the new runtime add-on version reporting in order to remain
forward compatible with add-ons that do not expect the new status code.

PR-URL: https://github.com/nodejs/node/pull/47986
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com>
2023-05-20 07:39:12 -07:00
..
2_function_arguments
3_callbacks
4_object_factory
5_function_factory
6_object_wrap
7_factory_wrap
8_passing_wrapped
test_array test: add trailing commas in test/js-native-api 2023-02-03 17:12:18 +01:00
test_bigint test: add trailing commas in test/js-native-api 2023-02-03 17:12:18 +01:00
test_cannot_run_js node-api: add status napi_cannot_run_js 2023-05-20 07:39:12 -07:00
test_constructor node-api: test passing NULL to napi_define_class 2023-04-26 06:38:51 +00:00
test_conversions test: add trailing commas in test/js-native-api 2023-02-03 17:12:18 +01:00
test_dataview
test_date
test_error test: add trailing commas in test/js-native-api 2023-02-03 17:12:18 +01:00
test_exception test: add trailing commas in test/js-native-api 2023-02-03 17:12:18 +01:00
test_function test: add trailing commas in test/js-native-api 2023-02-03 17:12:18 +01:00
test_general test: add trailing commas in test/js-native-api 2023-02-03 17:12:18 +01:00
test_handle_scope
test_instance_data
test_new_target
test_number node-api: test passing NULL to number APIs 2023-04-20 03:20:39 +00:00
test_object node-api: extend type-tagging to externals 2023-03-22 04:47:08 +00:00
test_promise
test_properties
test_reference node-api: get Node API version used by addon 2023-05-05 11:00:27 -04:00
test_reference_double_free
test_string
test_symbol
test_typedarray
.gitignore
common.c
common.h
entry_point.c
testcfg.py