Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! src: guard slightly costly check in MakeCallback more strongly
  • Loading branch information
addaleax committed Dec 26, 2021
commit b98e4bd20d2f7d412bf61fae4b005a35bd710a06
2 changes: 1 addition & 1 deletion src/api/callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ InternalCallbackScope::InternalCallbackScope(Environment* env,
CHECK_EQ(Environment::GetCurrent(isolate), env);
}

env->isolate()->SetIdle(false);
isolate->SetIdle(false);

env->async_hooks()->push_async_context(
async_context_.async_id, async_context_.trigger_async_id, object);
Expand Down