Skip to content

process: refactor global.queueMicrotask()

  • Lazy load async_hooks in the implementation
  • Rename process/next_tick.js to process/task_queues.js and move the implementation of global.queueMicrotask() there since these methods are conceptually related to each other.
  • Move the bindings used by global.queueMicrotask() into node_task_queue.cc instead of the generic node_util.cc
  • Use defineOperation to define global.queueMicrotask()
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading