Skip to content

Commit ce106df

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 9011db4 commit ce106df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/callback_scope.cc

+2-1
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)