diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-03-08 18:28:19 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-03-11 08:11:12 +0300 |
commit | 8d669bbeb1ed77e9cdc679f75d9e8529f5764087 (patch) | |
tree | 2b84c3a090de762ab014cb39f359cfcd68b40e9e /src/node_errors.h | |
parent | cc2c07ce0859f2df626bce912ba456439fdb33ec (diff) |
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 'src/node_errors.h')
-rw-r--r-- | src/node_errors.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_errors.h b/src/node_errors.h index 28bf6a670f8..d37dd7106ba 100644 --- a/src/node_errors.h +++ b/src/node_errors.h @@ -31,8 +31,6 @@ void FatalException(v8::Isolate* isolate, v8::Local<v8::Value> error, v8::Local<v8::Message> message); -void FatalException(const v8::FunctionCallbackInfo<v8::Value>& args); - // Helpers to construct errors similar to the ones provided by // lib/internal/errors.js. // Example: with `V(ERR_INVALID_ARG_TYPE, TypeError)`, there will be |