node/test/addons-napi
Gabriel Schulhof fd8523fe44
n-api: re-write test_make_callback
This re-writes the test in C by dropping std::vector<napi_value> in
favour of a C99 variable length array, and by dropping the anonymous
namespace in favour of static function declarations.

PR-URL: https://github.com/nodejs/node/pull/19448
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2018-03-24 11:42:46 +01:00
..
1_hello_world
2_function_arguments
3_callbacks
4_object_factory
5_function_factory
6_object_wrap
7_factory_wrap
8_passing_wrapped
test_array
test_async n-api: add napi_fatal_exception 2018-03-22 16:41:06 +00:00
test_buffer test: remove literals that obscure assert messages 2018-01-08 02:21:01 -05:00
test_callback_scope test: remove unnecessary timer 2018-02-21 14:20:23 -05:00
test_constructor n-api: remove extra reference from test 2018-02-21 10:19:20 -05:00
test_conversions
test_dataview n-api: throw RangeError in napi_create_dataview() with invalid range 2018-01-24 07:47:27 -06:00
test_env_sharing
test_error test: remove ambiguous error messages from test_error 2018-01-09 04:32:36 -05:00
test_exception test: show pending exception error in napi tests 2018-02-21 10:19:01 -05:00
test_fatal
test_fatal_exception n-api: add napi_fatal_exception 2018-03-22 16:41:06 +00:00
test_function
test_general test: remove assert.doesNotThrow() 2018-03-21 10:50:02 +00:00
test_handle_scope doc: use American spellings per style guide 2017-12-12 03:28:19 -05:00
test_make_callback n-api: re-write test_make_callback 2018-03-24 11:42:46 +01:00
test_make_callback_recurse n-api: add missing exception checking 2018-03-20 11:49:36 +00:00
test_new_target n-api,test: add a new.target test to addons-napi 2018-03-20 11:34:00 +00:00
test_number n-api,test: add int64 bounds tests 2018-03-20 11:49:34 +00:00
test_object n-api: fix object test 2018-03-05 10:07:17 +00:00
test_promise n-api: resolve promise in test 2018-03-20 11:33:59 +00:00
test_properties
test_reference n-api: update reference test 2018-03-05 10:07:17 +00:00
test_string
test_symbol test,benchmark,doc: enable dot-notation rule 2018-02-21 18:12:26 -05:00
test_typedarray test: fixed typos in napi test 2018-01-30 10:23:56 -06:00
test_uv_loop timers: allow Immediates to be unrefed 2018-02-26 18:39:45 -05:00
test_warning
.gitignore
common.h
testcfg.py