Skip to content

Commit 368746d

Browse files
committed
Remove async_id assertion check
1 parent 2b6df1c commit 368746d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/api/callback.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ void InternalCallbackScope::Close() {
111111
MicrotasksScope::PerformCheckpoint(env_->isolate());
112112
}
113113

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

121123
if (!tick_info->has_tick_scheduled() && !tick_info->has_rejection_to_warn()) {
122124
return;

0 commit comments

Comments
 (0)