Skip to content

Commit 281f4d3

Browse files
apapirovskiMayaLekova
authored andcommitted
src: remove unnecessary async hooks check
PR-URL: nodejs#18291 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 07b16f5 commit 281f4d3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/node.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,11 +1042,6 @@ void InternalCallbackScope::Close() {
10421042
return;
10431043
}
10441044

1045-
if (env_->async_hooks()->fields()[AsyncHooks::kTotals]) {
1046-
CHECK_EQ(env_->execution_async_id(), 0);
1047-
CHECK_EQ(env_->trigger_async_id(), 0);
1048-
}
1049-
10501045
Local<Object> process = env_->process_object();
10511046

10521047
if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) {

0 commit comments

Comments
 (0)