diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-02-14 19:14:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 19:14:49 +0300 |
commit | 849991c6c47a0e05365feb4c9b1fb841924a5192 (patch) | |
tree | 056d4fc7618a0834f15afffa91aa013c37f13c0e /src/node_options.cc | |
parent | b53f927a521e6bae7e12583634b4a21aef348f13 (diff) |
crypto: expose Web Crypto API on the global scope
PR-URL: https://github.com/nodejs/node/pull/41938
Refs: https://developer.mozilla.org/en-US/docs/Web/API/crypto_property
Refs: https://github.com/nodejs/node/pull/41782
Refs: https://w3c.github.io/webcrypto
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
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 bac3de2404b..ab3b736e07d 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -319,6 +319,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { "experimental Fetch API", &EnvironmentOptions::experimental_fetch, kAllowedInEnvironment); + AddOption("--experimental-global-webcrypto", + "expose experimental Web Crypto API on the global scope", + &EnvironmentOptions::experimental_global_web_crypto, + kAllowedInEnvironment); AddOption("--experimental-json-modules", "", NoOp{}, kAllowedInEnvironment); AddOption("--experimental-loader", "use the specified module as a custom loader", |