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`.

PR-URL: #31488
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Gabriel Schulhof authored and Trott committed Jan 26, 2020
1 parent 3ff2aec commit 42995a3
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"sources": [
"../common.c",
"../entry_point.c",
"test_null.c",
"test_object.c"
]
}
Expand Down
Loading

0 comments on commit 42995a3

Please sign in to comment.