From 18b140ae75aafa61f7e8e84319067ddd7df9b655 Mon Sep 17 00:00:00 2001 From: Ouyang Yadong Date: Tue, 23 Oct 2018 15:30:56 +0800 Subject: [PATCH] src: use maybe version v8::Function::Call Refs: https://github.com/nodejs/node/pull/23804 PR-URL: https://github.com/nodejs/node/pull/23826 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Denys Otrishko Reviewed-By: Matheus Marchini Reviewed-By: James M Snell --- src/callback_scope.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callback_scope.cc b/src/callback_scope.cc index 9d0c4d5daf2627..b184494680357a 100644 --- a/src/callback_scope.cc +++ b/src/callback_scope.cc @@ -119,8 +119,8 @@ void InternalCallbackScope::Close() { if (!env_->can_call_into_js()) return; - if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) { - env_->tick_info()->set_has_thrown(true); + if (env_->tick_callback_function() + ->Call(env_->context(), process, 0, nullptr).IsEmpty()) { failed_ = true; } }