0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/addons-napi
Gabriel Schulhof 9926dfebc8
n-api: re-use napi_env between modules
Store the `napi_env` on the global object at a private key. This gives
us one `napi_env` per context.

Refs: https://github.com/nodejs/node/issues/14367
PR-URL: https://github.com/nodejs/node/pull/14217
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
2017-07-27 07:55:48 +08:00
..
1_hello_world n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
2_function_arguments n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
3_callbacks n-api: napi_get_cb_info should fill array 2017-05-09 15:12:15 -04:00
4_object_factory n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
5_function_factory n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
6_object_wrap n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
7_factory_wrap n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
8_passing_wrapped n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
test_array n-api: add napi_delete_element() 2017-06-30 17:08:51 -04:00
test_async n-api: add code parameter to error helpers 2017-07-13 15:05:19 -04:00
test_buffer n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
test_constructor test: increase n-api constructor coverage 2017-05-23 21:05:30 +02:00
test_conversions n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
test_env_sharing n-api: re-use napi_env between modules 2017-07-27 07:55:48 +08:00
test_error n-api: add code parameter to error helpers 2017-07-13 15:05:19 -04:00
test_exception test: add common.mustCall() to NAPI exception test 2017-05-13 16:49:24 -07:00
test_fatal n-api: add napi_fatal_error API 2017-07-13 18:48:27 -04:00
test_function n-api: napi_get_cb_info should fill array 2017-05-09 15:12:15 -04:00
test_general test: handle missing V8 tests in n-api test 2017-07-13 11:51:43 -04:00
test_handle_scope n-api: avoid crash in napi_escape_scope() 2017-06-21 16:57:39 -04:00
test_make_callback test: port test for make_callback to n-api 2017-05-06 12:24:43 -04:00
test_make_callback_recurse lib,src: fix consistent spacing inside braces 2017-07-21 15:13:47 -04:00
test_number test: test doc'd napi_get_value_int32 behaviour 2017-04-26 16:00:16 -04:00
test_object lib,src: fix consistent spacing inside braces 2017-07-21 15:13:47 -04:00
test_properties test: changed error message validator 2017-07-26 20:22:47 +02:00
test_reference test: replace string concat with template literal 2017-07-16 06:33:09 -07:00
test_string n-api: remove napi_get_value_string_length() 2017-04-20 13:27:17 -04:00
test_symbol n-api: change napi_callback to return napi_value 2017-04-10 23:30:03 +02:00
test_typedarray n-api: add code parameter to error helpers 2017-07-13 15:05:19 -04:00
.gitignore n-api: add support for abi stable module API 2017-04-03 10:31:25 +02:00
common.h n-api: add code parameter to error helpers 2017-07-13 15:05:19 -04:00
testcfg.py n-api: add support for abi stable module API 2017-04-03 10:31:25 +02:00