test: propagate napi_status to JS · nodejs/node@88809a4 · GitHub
Skip to content

Commit 88809a4

Browse files
Octavian Soldeatargos
authored andcommitted
test: propagate napi_status to JS
Re: #27945 (comment) This commit regards reporting to the JS level an actual event that happens when using suspected improper null arguments. It is better to report the exact reason from N-API to the JS level. PR-URL: #28505 Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 61db987 commit 88809a4

2 files changed

Lines changed: 94 additions & 106 deletions

File tree

test/js-native-api/test_constructor/test.js

Lines changed: 6 additions & 6 deletions

test/js-native-api/test_constructor/test_constructor.c

Lines changed: 88 additions & 100 deletions

0 commit comments

Comments
 (0)