process: refactor global.queueMicrotask()
- Lazy load
async_hooks
in the implementation - Rename
process/next_tick.js
toprocess/task_queues.js
and move the implementation ofglobal.queueMicrotask()
there since these methods are conceptually related to each other. - Move the bindings used by
global.queueMicrotask()
intonode_task_queue.cc
instead of the genericnode_util.cc
- Use
defineOperation
to defineglobal.queueMicrotask()
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines