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 /src/node_options.cc | |
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 'src/node_options.cc')
-rw-r--r-- | src/node_options.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_options.cc b/src/node_options.cc index cb812f6ccfc..68bd8757cc7 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -274,6 +274,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { "experimental Source Map V3 support", &EnvironmentOptions::enable_source_maps, kAllowedInEnvironment); + AddOption("--experimental-abortcontroller", + "experimental AbortController support", + &EnvironmentOptions::experimental_abortcontroller, + kAllowedInEnvironment); AddOption("--experimental-json-modules", "experimental JSON interop support for the ES Module loader", &EnvironmentOptions::experimental_json_modules, |