diff options
author | Ouyang Yadong <oyydoibh@gmail.com> | 2018-10-23 10:30:56 +0300 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2019-10-18 12:39:09 +0300 |
commit | 18b140ae75aafa61f7e8e84319067ddd7df9b655 (patch) | |
tree | 00f4bdc5a624b05d522da099d0765db413af22b0 /src | |
parent | 1bb51029998c7a53b78828a7a0c2f312768fc71e (diff) |
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 <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/callback_scope.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callback_scope.cc b/src/callback_scope.cc index 9d0c4d5daf2..b1844946803 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; } } |