From ce106df728a7b898eab4180b9322ea3756796c77 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/callback_scope.cc b/src/callback_scope.cc index 1743d5576682bf..0757b61061c3e7 100644 --- a/src/callback_scope.cc +++ b/src/callback_scope.cc @@ -114,7 +114,8 @@ void InternalCallbackScope::Close() { if (!env_->can_call_into_js()) return; - if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) { + if (env_->tick_callback_function() + ->Call(env_->context(), process, 0, nullptr).IsEmpty()) { failed_ = true; } }