Permalink
Browse files

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>
  • Loading branch information...
addaleax authored and mhdawson committed May 13, 2017
1 parent 47c3c58 commit 008301167eaed35306005ba20c5ac7bc04ff32f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node_api.cc
View
@@ -2781,7 +2781,7 @@ class Work {
// report it as a fatal exception. (There is no JavaScript on the
// callstack that can possibly handle it.)
if (!env->last_exception.IsEmpty()) {
v8::TryCatch try_catch;
v8::TryCatch try_catch(env->isolate);
env->isolate->ThrowException(
v8::Local<v8::Value>::New(env->isolate, env->last_exception));
node::FatalException(env->isolate, try_catch);

0 comments on commit 0083011

Please sign in to comment.