Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.
Description
This example from the documentation (https://nodejs.org/api/process.html#when-to-use-queuemicrotask-vs-processnexttick)
import{nextTick}from'node:process';Promise.resolve().then(()=>console.log(2));queueMicrotask(()=>console.log(3));nextTick(()=>console.log(1));// Output:// 1// 2// 3doesn't work in Windows (node 16.13 and 18.11) and Ubuntu (node 18.11). Actual output is always
231This looks like a documentation bug, but any explanation for this behavior in the main module would be appreciated.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.