Skip to content

Commit

Permalink
src: use maybe version v8::Function::Call
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
oyyd authored and targos committed Oct 26, 2018
1 parent a85d5b4 commit 02d83d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/callback_scope.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ void InternalCallbackScope::Close() {

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

if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) {
if (env_->tick_callback_function()
->Call(env_->context(), process, 0, nullptr).IsEmpty()) {
failed_ = true;
}
}
Expand Down

0 comments on commit 02d83d4

Please sign in to comment.