Skip to content

Commit

Permalink
test: cover property n-api null cases
Browse files Browse the repository at this point in the history
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`.

Backport-PR-URL: #32482
PR-URL: #31488
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Gabriel Schulhof authored and targos committed Apr 28, 2020
1 parent f56c4dd commit 02ec03c
Show file tree
Hide file tree
Showing 5 changed files with 465 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/js-native-api/test_object/binding.gyp
Expand Up @@ -5,6 +5,7 @@
"sources": [
"../common.c",
"../entry_point.c",
"test_null.c",
"test_object.c"
]
}
Expand Down

0 comments on commit 02ec03c

Please sign in to comment.