Skip to content

Commit b9fa3fe

Browse files
addaleaxOlivier Martin
authored andcommitted
n-api: remove compiler warning
`TryCatch` without an `Isolate*` argument is deprecated, so add one. PR-URL: nodejs#13014 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Jason Ginchereau <jasongin@microsoft.com>
1 parent 223c992 commit b9fa3fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2781,7 +2781,7 @@ class Work {
27812781
// report it as a fatal exception. (There is no JavaScript on the
27822782
// callstack that can possibly handle it.)
27832783
if (!env->last_exception.IsEmpty()) {
2784-
v8::TryCatch try_catch;
2784+
v8::TryCatch try_catch(env->isolate);
27852785
env->isolate->ThrowException(
27862786
v8::Local<v8::Value>::New(env->isolate, env->last_exception));
27872787
node::FatalException(env->isolate, try_catch);

0 commit comments

Comments
 (0)