Skip to content
/ node Public

Commit

Permalink
Remove async_id assertion check
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Apr 3, 2020
1 parent ea9e1ba commit 69c7650
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ void InternalCallbackScope::Close() {
MicrotasksScope::PerformCheckpoint(env_->isolate());
}

#if 0
// Make sure the stack unwound properly. If there are nested MakeCallback's
// then it should return early and not reach this code.
if (env_->async_hooks()->fields()[AsyncHooks::kTotals]) {
CHECK_EQ(env_->execution_async_id(), 0);
CHECK_EQ(env_->trigger_async_id(), 0);
}
#endif

if (!tick_info->has_tick_scheduled() && !tick_info->has_rejection_to_warn()) {
return;
Expand Down

0 comments on commit 69c7650

Please sign in to comment.