diff options
author | James M Snell <jasnell@gmail.com> | 2020-05-23 04:11:14 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-06-05 22:21:47 +0300 |
commit | 74ca960aac4600953caacd5f250b11a90bd70ee7 (patch) | |
tree | 241afade93b93c034e23339896e7386f32c3b3e9 /lib/internal/main | |
parent | 3e2a3007107b7a100794f4e4adbde19263fc7464 (diff) |
lib: initial experimental AbortController implementation
AbortController impl based very closely on:
https://github.com/mysticatea/abort-controller
Marked experimental.
Not currently used by any of the existing promise apis.
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/33527
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/internal/main')
-rw-r--r-- | lib/internal/main/worker_thread.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/internal/main/worker_thread.js b/lib/internal/main/worker_thread.js index 61045cf1c08..31c23993e80 100644 --- a/lib/internal/main/worker_thread.js +++ b/lib/internal/main/worker_thread.js @@ -13,6 +13,7 @@ const { setupInspectorHooks, setupWarningHandler, setupDebugEnv, + initializeAbortController, initializeDeprecations, initializeWASI, initializeCJSLoader, @@ -112,6 +113,7 @@ port.on('message', (message) => { if (manifestSrc) { require('internal/process/policy').setup(manifestSrc, manifestURL); } + initializeAbortController(); initializeDeprecations(); initializeWASI(); initializeCJSLoader(); |