Skip to content

Commit 0083011

Browse files
addaleaxmhdawson
authored andcommitted
n-api: remove compiler warning
`TryCatch` without an `Isolate*` argument is deprecated, so add one. PR-URL: #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 47c3c58 commit 0083011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_api.cc

+1-1
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)