diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-03-08 16:28:19 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-03-11 06:11:12 +0100 |
commit | 8d669bbeb1ed77e9cdc679f75d9e8529f5764087 (patch) | |
tree | 2b84c3a090de762ab014cb39f359cfcd68b40e9e /test | |
parent | cc2c07ce0859f2df626bce912ba456439fdb33ec (diff) | |
download | android-node-v8-8d669bbeb1ed77e9cdc679f75d9e8529f5764087.tar.gz android-node-v8-8d669bbeb1ed77e9cdc679f75d9e8529f5764087.tar.bz2 android-node-v8-8d669bbeb1ed77e9cdc679f75d9e8529f5764087.zip |
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()`
PR-URL: https://github.com/nodejs/node/pull/26523
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/message/events_unhandled_error_nexttick.out | 4 | ||||
-rw-r--r-- | test/message/nexttick_throw.out | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/message/events_unhandled_error_nexttick.out b/test/message/events_unhandled_error_nexttick.out index 4132ae9f3b..fba05879fc 100644 --- a/test/message/events_unhandled_error_nexttick.out +++ b/test/message/events_unhandled_error_nexttick.out @@ -13,7 +13,7 @@ Error at internal/main/run_main_module.js:*:* Emitted 'error' event at: at process.nextTick (*events_unhandled_error_nexttick.js:*:*) - at processTicksAndRejections (internal/process/next_tick.js:*:*) - at process.runNextTicks [as _tickCallback] (internal/process/next_tick.js:*:*) + at processTicksAndRejections (internal/process/task_queues.js:*:*) + at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:*:*) at Function.Module.runMain (internal/modules/cjs/loader.js:*:*) at internal/main/run_main_module.js:*:* diff --git a/test/message/nexttick_throw.out b/test/message/nexttick_throw.out index 7aa38a0424..f180c4ab55 100644 --- a/test/message/nexttick_throw.out +++ b/test/message/nexttick_throw.out @@ -4,7 +4,7 @@ ^ ReferenceError: undefined_reference_error_maker is not defined at *test*message*nexttick_throw.js:*:* - at processTicksAndRejections (internal/process/next_tick.js:*:*) - at process.runNextTicks [as _tickCallback] (internal/process/next_tick.js:*:*) + at processTicksAndRejections (internal/process/task_queues.js:*:*) + at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:*:*) at Function.Module.runMain (internal/modules/cjs/loader.js:*:*) at internal/main/run_main_module.js:*:* |