summaryrefslogtreecommitdiff
path: root/src/callback_scope.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/callback_scope.cc')
-rw-r--r--src/callback_scope.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callback_scope.cc b/src/callback_scope.cc
index 0757b61061..89fd4d6dd4 100644
--- a/src/callback_scope.cc
+++ b/src/callback_scope.cc
@@ -95,7 +95,7 @@ void InternalCallbackScope::Close() {
Environment::TickInfo* tick_info = env_->tick_info();
if (!env_->can_call_into_js()) return;
- if (!tick_info->has_scheduled()) {
+ if (!tick_info->has_tick_scheduled()) {
env_->isolate()->RunMicrotasks();
}
@@ -106,7 +106,7 @@ void InternalCallbackScope::Close() {
CHECK_EQ(env_->trigger_async_id(), 0);
}
- if (!tick_info->has_scheduled() && !tick_info->has_promise_rejections()) {
+ if (!tick_info->has_tick_scheduled() && !tick_info->has_rejection_to_warn()) {
return;
}