diff --git a/src/callback_scope.cc b/src/callback_scope.cc index 9d0c4d5daf2627..b184494680357a 100644 --- a/src/callback_scope.cc +++ b/src/callback_scope.cc @@ -119,8 +119,8 @@ void InternalCallbackScope::Close() { if (!env_->can_call_into_js()) return; - if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) { - env_->tick_info()->set_has_thrown(true); + if (env_->tick_callback_function() + ->Call(env_->context(), process, 0, nullptr).IsEmpty()) { failed_ = true; } }