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 <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
Gabriel Schulhof authored and codebytere committed Feb 17, 2020
1 parent 8f25e51 commit c4a2f94
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 c4a2f94

Please sign in to comment.