Skip to content

Commit 18b140a

Browse files
oyydBethGriggs
authored andcommitted
src: use maybe version v8::Function::Call
Refs: #23804 PR-URL: #23826 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Denys Otrishko <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: James M Snell <[email protected]>
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)