We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47c3c58 commit 0083011Copy full SHA for 0083011
src/node_api.cc
@@ -2781,7 +2781,7 @@ class Work {
2781
// report it as a fatal exception. (There is no JavaScript on the
2782
// callstack that can possibly handle it.)
2783
if (!env->last_exception.IsEmpty()) {
2784
- v8::TryCatch try_catch;
+ v8::TryCatch try_catch(env->isolate);
2785
env->isolate->ThrowException(
2786
v8::Local<v8::Value>::New(env->isolate, env->last_exception));
2787
node::FatalException(env->isolate, try_catch);
0 commit comments