Skip to content

Commit 02d83d4

Browse files
oyydtargos
authored andcommitted
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 a85d5b4 commit 02d83d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/callback_scope.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ void InternalCallbackScope::Close() {
114114

115115
if (!env_->can_call_into_js()) return;
116116

117-
if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) {
117+
if (env_->tick_callback_function()
118+
->Call(env_->context(), process, 0, nullptr).IsEmpty()) {
118119
failed_ = true;
119120
}
120121
}

0 commit comments

Comments
 (0)