Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOuyang Yadong <oyydoibh@gmail.com>2018-10-23 10:30:56 +0300
committerBeth Griggs <Bethany.Griggs@uk.ibm.com>2019-10-18 12:39:09 +0300
commit18b140ae75aafa61f7e8e84319067ddd7df9b655 (patch)
tree00f4bdc5a624b05d522da099d0765db413af22b0 /src
parent1bb51029998c7a53b78828a7a0c2f312768fc71e (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.cc4
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;
}
}