-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Different async_hooks behavior in Node 10 #20274
Copy link
Copy link
Closed
Labels
async_hooksIssues and PRs related to the async hooks subsystem.Issues and PRs related to the async hooks subsystem.confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Metadata
Metadata
Assignees
Labels
async_hooksIssues and PRs related to the async hooks subsystem.Issues and PRs related to the async hooks subsystem.confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Running the following code
on Node 9 gives the output
while on Node 10 it gives
That is, on Node 10, the
triggerAsyncIdis always 1, and I am unable to track which contexts follow from which other contexts.Is one of these unexpected behavior? If the change is a known (undocumented?) new behavior, is there any way with Node 10 to achieve what I was doing under previous versions?