Skip to content

Commit

Permalink
src: use maybe version v8::Function::Call
Browse files Browse the repository at this point in the history
  • Loading branch information
oyyd committed Oct 23, 2018
1 parent d901d16 commit c6d40a2
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 c6d40a2

Please sign in to comment.