Skip to content

Commit 18b140a

Browse files
oyydBethGriggs
authored andcommittedOct 18, 2019
src: use maybe version v8::Function::Call
Refs: #23804 PR-URL: #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>
1 parent 1bb5102 commit 18b140a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/callback_scope.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ void InternalCallbackScope::Close() {
119119

120120
if (!env_->can_call_into_js()) return;
121121

122-
if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) {
123-
env_->tick_info()->set_has_thrown(true);
122+
if (env_->tick_callback_function()
123+
->Call(env_->context(), process, 0, nullptr).IsEmpty()) {
124124
failed_ = true;
125125
}
126126
}

0 commit comments

Comments
 (0)
Please sign in to comment.