0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/js-native-api
legendecas 689ab46c64 n-api: return napi_invalid_arg on napi_create_bigint_words
N-API statuses shall be preferred over throwing JavaScript Errors on
checks occurred in N-APIs.

PR-URL: https://github.com/nodejs/node/pull/31312
Refs: https://github.com/nodejs/node/issues/29849
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2020-01-13 21:16:05 -08:00
..
2_function_arguments
3_callbacks
4_object_factory
5_function_factory
6_object_wrap n-api: define ECMAScript-compliant accessors on napi_define_class 2019-06-17 12:07:08 +02:00
7_factory_wrap
8_passing_wrapped doc: remove "it is important to" phrasing 2019-10-26 16:33:24 -07:00
test_array
test_bigint n-api: return napi_invalid_arg on napi_create_bigint_words 2020-01-13 21:16:05 -08:00
test_constructor n-api: refactor a previous commit 2019-07-26 15:09:04 -07:00
test_conversions
test_dataview
test_date n-api: mark version 5 N-APIs as stable 2019-09-05 09:16:54 -07:00
test_error test: refactor common.expectsError 2019-12-31 15:54:20 +01:00
test_exception
test_function n-api: refactoring napi_create_function testing 2019-07-31 23:19:41 -07:00
test_general test: refactor common.expectsError 2019-12-31 15:54:20 +01:00
test_handle_scope
test_instance_data n-api: add APIs for per-instance state management 2019-07-25 16:53:07 -07:00
test_new_target
test_number
test_object n-api: add napi_get_all_property_names 2020-01-11 18:50:28 -08:00
test_promise
test_properties n-api: define ECMAScript-compliant accessors on napi_define_properties 2019-06-17 12:06:06 +02:00
test_reference test: check napi_get_reference_value() during finalization 2019-04-30 18:59:34 -07:00
test_string
test_symbol
test_typedarray src: migrate to new V8 ArrayBuffer API 2019-12-12 10:05:44 -05:00
.gitignore
common.c n-api: refactor a previous commit 2019-07-26 15:09:04 -07:00
common.h n-api: refactor a previous commit 2019-07-26 15:09:04 -07:00
entry_point.c
testcfg.py