node/test/js-native-api
Daeyeon Jeong cc7d4ab493 src: fix napi_check_object_type_tag()
This fixes a comparison failure occurring when the upper value of a
type tag is 0, or a type tag value is 0.

Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com

PR-URL: https://github.com/nodejs/node/pull/43788
Fixes: https://github.com/nodejs/node/issues/43786
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2022-07-14 15:22:46 -04:00
..
2_function_arguments test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
3_callbacks test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
4_object_factory test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
5_function_factory test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
6_object_wrap test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
7_factory_wrap test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
8_passing_wrapped test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
test_array test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test_bigint test: suppress compiler warning in test_bigint 2021-10-01 05:13:32 +02:00
test_constructor test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_conversions test: avoid deep comparisons with literals 2021-11-02 10:11:49 +00:00
test_dataview test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_date test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_error src,doc: add SyntaxError napi support 2021-11-16 16:30:45 -05:00
test_exception test: pass data into napi_create_external 2022-04-02 23:57:33 +01:00
test_function node-api: handle pending exception in cb wrapper 2021-08-03 16:38:45 -04:00
test_general test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test_handle_scope test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_instance_data test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_new_target test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
test_number tools: enable ESLint no-loss-of-precision rule 2022-01-13 17:11:11 -08:00
test_object src: fix napi_check_object_type_tag() 2022-07-14 15:22:46 -04:00
test_promise test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_properties node-api: add node_api_symbol_for() 2022-01-24 16:35:07 -05:00
test_reference node-api: emit uncaught-exception on unhandled tsfn callbacks 2022-05-27 13:32:08 -04:00
test_reference_double_free node-api: force env shutdown deferring behavior 2021-02-18 20:31:03 -08:00
test_string node-api: avoid crashing on passed-in null string 2021-06-11 09:01:22 -07:00
test_symbol test: replace commented out expectations with tests 2022-01-29 10:01:10 +00:00
test_typedarray test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
.gitignore test: partition N-API tests 2018-12-04 13:58:17 -08:00
common.c test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
common.h node-api,src: fix module registration in MSVC C++ 2022-04-07 09:40:07 -04:00
entry_point.c test: partition N-API tests 2018-12-04 13:58:17 -08:00
testcfg.py test: partition N-API tests 2018-12-04 13:58:17 -08:00