node/test/addons-napi
Anthony Tuininga d3de1ed653
n-api: improve performance creating strings
Improve performance creating strings using N-API by ensuring that the
strings are not internalized.

Added test cases for latin-1 and utf-16 strings.

PR-URL: https://github.com/nodejs/node/pull/26439
Fixes: https://github.com/nodejs/node/issues/26437
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-04-15 23:50:11 -04:00
..
1_hello_world n-api: refactor napi_addon_register_func 2017-09-20 09:23:01 -07:00
2_function_arguments n-api: refactor napi_addon_register_func 2017-09-20 09:23:01 -07:00
3_callbacks n-api: refactor napi_addon_register_func 2017-09-20 09:23:01 -07:00
4_object_factory n-api: add optional string length parameters 2017-09-20 09:32:47 -07:00
5_function_factory n-api: add optional string length parameters 2017-09-20 09:32:47 -07:00
6_object_wrap n-api: add optional string length parameters 2017-09-20 09:32:47 -07:00
7_factory_wrap tools: add cpplint rule for NULL usage 2018-01-03 23:27:43 +00:00
8_passing_wrapped n-api: back up env before finalize 2018-05-01 17:16:36 -04:00
test_array n-api: refactor napi_addon_register_func 2017-09-20 09:23:01 -07:00
test_async n-api: add napi_fatal_exception 2018-05-01 17:16:35 -04:00
test_buffer test: remove literals that obscure assert messages 2018-05-01 17:16:27 -04:00
test_callback_scope test: remove unnecessary timer 2018-05-01 17:16:32 -04:00
test_cleanup_hook src: add environment cleanup hooks 2018-09-06 09:43:54 -07:00
test_constructor n-api: remove extra reference from test 2018-05-01 17:16:31 -04:00
test_conversions n-api: fix warning about size_t compare with int 2017-09-25 11:26:02 -07:00
test_dataview n-api: throw RangeError in napi_create_dataview() with invalid range 2018-05-01 17:16:28 -04:00
test_env_sharing n-api: fix warning about size_t compare with int 2017-09-25 11:26:02 -07:00
test_error test: remove ambiguous error messages from test_error 2018-05-01 17:16:27 -04:00
test_exception n-api: ensure in-module exceptions are propagated 2018-05-01 17:16:36 -04:00
test_fatal n-api: fix warning about size_t compare with int 2017-09-25 11:26:02 -07:00
test_fatal_exception n-api: add napi_fatal_exception 2018-05-01 17:16:35 -04:00
test_function n-api: create functions directly 2018-08-17 17:05:06 -04:00
test_general n-api: mark thread-safe function as stable 2019-03-19 23:56:33 +00:00
test_handle_scope n-api: check against invalid handle scope usage 2017-10-18 08:53:32 -07:00
test_make_callback n-api: re-write test_make_callback 2018-05-01 17:16:35 -04:00
test_make_callback_recurse test: properly tag anonymous namespaces 2018-08-16 11:38:50 +10:00
test_new_target n-api,test: add a new.target test to addons-napi 2018-05-01 17:16:34 -04:00
test_null_init n-api: throw when entry point is null 2018-08-16 11:38:52 +10:00
test_number n-api: add more int64_t tests 2018-05-01 17:16:36 -04:00
test_object n-api: fix object test 2018-05-01 17:16:33 -04:00
test_promise n-api: resolve promise in test 2018-05-01 17:16:33 -04:00
test_properties n-api: fix warning about size_t compare with int 2017-09-25 11:26:02 -07:00
test_reference n-api: update reference test 2018-05-01 17:16:33 -04:00
test_string n-api: improve performance creating strings 2019-04-15 23:50:11 -04:00
test_symbol test,benchmark,doc: enable dot-notation rule 2018-08-16 01:59:08 -04:00
test_threadsafe_function n-api: mark thread-safe function as stable 2019-03-19 23:56:33 +00:00
test_typedarray test: convert new tests to use error types 2018-05-01 17:16:32 -04:00
test_uv_loop timers: allow Immediates to be unrefed 2018-05-01 17:16:29 -04:00
.gitignore
addons-napi.status test: mark test_threadsafe_function/test as flaky 2019-02-28 23:40:11 +11:00
common.h
testcfg.py n-api: remove n-api module loading flag 2017-09-20 09:32:47 -07:00