From 8d3162d9e68b6ae30addde5d0c5e1566e21c7ce6 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 13 May 2017 17:36:23 +0200 Subject: [PATCH] n-api: remove compiler warning `TryCatch` without an `Isolate*` argument is deprecated, so add one. Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/13014 Reviewed-By: Timothy Gu Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson Reviewed-By: Jason Ginchereau --- src/node_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_api.cc b/src/node_api.cc index 8600783523c7a5..b0900d1acd12bb 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -2783,7 +2783,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::New(env->isolate, env->last_exception)); node::FatalException(env->isolate, try_catch);