node/test/js-native-api/test_function
Michael Dawson 79b2c9a371 node-api: handle pending exception in cb wrapper
fixes: https://github.com/nodejs/node-addon-api/issues/1025

The functionreference test from the node-api tests
was reporting a failed v8 check when Node.js was compiled
as debug. The failure was because an exception was
pending but the C++ wrappers were returning
a return value that was invalid.

Signed-off-by: Michael Dawson <mdawson@devrus.com>

PR-URL: https://github.com/nodejs/node/pull/39476
Fixes: https://github.com/nodejs/node-addon-api/issues/1025
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2021-08-03 16:38:45 -04:00
..
binding.gyp n-api: refactoring napi_create_function testing 2019-07-31 23:19:41 -07:00
test_function.c node-api: handle pending exception in cb wrapper 2021-08-03 16:38:45 -04:00
test.js node-api: handle pending exception in cb wrapper 2021-08-03 16:38:45 -04:00