Commit 79b2c9a3 authored by Michael Dawson's avatar Michael Dawson
Browse files

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: default avatarMichael 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: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarChengzhong Wu <legendecas@gmail.com>
parent dd187959
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment