Skip to content

Commit 42995a3

Browse files
Gabriel SchulhofTrott
Gabriel Schulhof
authored andcommitted
test: cover property n-api null cases
Add test coverage for passing `NULL` to each parameter of `napi.*(propert|element)` and `napi_set_prototype`. In the case of `napi_define_properties` also test setting various initializer fields to `NULL`. PR-URL: #31488 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 3ff2aec commit 42995a3

File tree

5 files changed

+465
-0
lines changed

5 files changed

+465
-0
lines changed

test/js-native-api/test_object/binding.gyp

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"sources": [
66
"../common.c",
77
"../entry_point.c",
8+
"test_null.c",
89
"test_object.c"
910
]
1011
}

0 commit comments

Comments
 (0)