src: remove unnecessary async hooks check

PR-URL: https://github.com/nodejs/node/pull/18291
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Anatoli Papirovski 2018-01-21 10:47:02 -05:00
parent 7d3a3028ff
commit fdf107afdc
No known key found for this signature in database
GPG Key ID: 614E2E1ABEB4B2C0

View File

@ -1042,11 +1042,6 @@ void InternalCallbackScope::Close() {
return;
}
if (env_->async_hooks()->fields()[AsyncHooks::kTotals]) {
CHECK_EQ(env_->execution_async_id(), 0);
CHECK_EQ(env_->trigger_async_id(), 0);
}
Local<Object> process = env_->process_object();
if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) {