Skip to content
Browse files

n-api: remove compiler warning

`TryCatch` without an `Isolate*` argument is deprecated, so add one.

PR-URL: #13014
Reviewed-By: Timothy Gu <>
Reviewed-By: Gibson Fahnestock <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Michael Dawson <>
Reviewed-By: Jason Ginchereau <>
  • Loading branch information
addaleax authored and mhdawson committed May 16, 2017
1 parent 47c3c58 commit 008301167eaed35306005ba20c5ac7bc04ff32f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/
@@ -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);
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.
You can’t perform that action at this time.