| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 81a9a97 commit f7e73cd
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1364,14 +1364,6 @@ added: v0.8.0 | |||
| 1364 | 1364 | ||
| 1365 | 1365 | Silence deprecation warnings. | |
| 1366 | 1366 | ||
| 1367 | - ### `--no-experimental-global-customevent` | ||
| 1368 | - | ||
| 1369 | - <!-- YAML | ||
| 1370 | - added: v19.0.0 | ||
| 1371 | - --> | ||
| 1372 | - | ||
| 1373 | - Disable exposition of [CustomEvent Web API][] on the global scope. | ||
| 1374 | - | ||
| 1375 | 1367 | ### `--no-experimental-global-navigator` | |
| 1376 | 1368 | ||
| 1377 | 1369 | <!-- YAML | |
@@ -2682,7 +2674,6 @@ one is included in the list below. | |||
| 2682 | 2674 | * `--network-family-autoselection-attempt-timeout` | |
| 2683 | 2675 | * `--no-addons` | |
| 2684 | 2676 | * `--no-deprecation` | |
| 2685 | - * `--no-experimental-global-customevent` | ||
| 2686 | 2677 | * `--no-experimental-global-navigator` | |
| 2687 | 2678 | * `--no-experimental-repl-await` | |
| 2688 | 2679 | * `--no-experimental-websocket` | |
@@ -3153,7 +3144,6 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12 | |||
| 3153 | 3144 | [Chrome DevTools Protocol]: https://chromedevtools.github.io/devtools-protocol/ | |
| 3154 | 3145 | [CommonJS]: modules.md | |
| 3155 | 3146 | [CommonJS module]: modules.md | |
| 3156 | - [CustomEvent Web API]: https://dom.spec.whatwg.org/#customevent | ||
| 3157 | 3147 | [DEP0025 warning]: deprecations.md#dep0025-requirenodesys | |
| 3158 | 3148 | [ECMAScript module]: esm.md#modules-ecmascript-modules | |
| 3159 | 3149 | [ExperimentalWarning: `vm.measureMemory` is an experimental feature]: vm.md#vmmeasurememoryoptions | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -422,13 +422,15 @@ added: | |||
| 422 | 422 | - v18.7.0 | |
| 423 | 423 | - v16.17.0 | |
| 424 | 424 | changes: | |
| 425 | + - version: REPLACEME | ||
| 426 | + pr-url: https://github.com/nodejs/node/pull/52723 | ||
| 427 | + description: No longer experimental. | ||
| 425 | 428 | - version: v19.0.0 | |
| 426 | 429 | pr-url: https://github.com/nodejs/node/pull/44860 | |
| 427 | 430 | description: No longer behind `--experimental-global-customevent` CLI flag. | |
| 428 | 431 | --> | |
| 429 | 432 | ||
| 430 | - > Stability: 1 - Experimental. Disable this API with the | ||
| 431 | - > [`--no-experimental-global-customevent`][] CLI flag. | ||
| 433 | + > Stability: 2 - Stable | ||
| 432 | 434 | ||
| 433 | 435 | <!-- type=global --> | |
| 434 | 436 | ||
@@ -1150,7 +1152,6 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][]. | |||
| 1150 | 1152 | [Navigator API]: https://html.spec.whatwg.org/multipage/system-state.html#the-navigator-object | |
| 1151 | 1153 | [RFC 5646]: https://www.rfc-editor.org/rfc/rfc5646.txt | |
| 1152 | 1154 | [Web Crypto API]: webcrypto.md | |
| 1153 | - [`--no-experimental-global-customevent`]: cli.md#--no-experimental-global-customevent | ||
| 1154 | 1155 | [`--no-experimental-global-navigator`]: cli.md#--no-experimental-global-navigator | |
| 1155 | 1156 | [`--no-experimental-websocket`]: cli.md#--no-experimental-websocket | |
| 1156 | 1157 | [`AbortController`]: https://developer.mozilla.org/en-US/docs/Web/API/AbortController | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,9 +186,6 @@ Enable code coverage in the test runner. | |||
| 186 | 186 | .It Fl -no-experimental-websocket | |
| 187 | 187 | Disable experimental support for the WebSocket API. | |
| 188 | 188 | . | |
| 189 | - .It Fl -no-experimental-global-customevent | ||
| 190 | - Disable exposition of the CustomEvent on the global scope. | ||
| 191 | - . | ||
| 192 | 189 | .It Fl -no-experimental-repl-await | |
| 193 | 190 | Disable top-level await keyword support in REPL. | |
| 194 | 191 | . | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,6 +50,7 @@ const { | |||
| 50 | 50 | } = require('internal/event_target'); | |
| 51 | 51 | exposeInterface(globalThis, 'Event', Event); | |
| 52 | 52 | exposeInterface(globalThis, 'EventTarget', EventTarget); | |
| 53 | + exposeLazyInterfaces(globalThis, 'internal/event_target', ['CustomEvent']); | ||
| 53 | 54 | ||
| 54 | 55 | // https://encoding.spec.whatwg.org/#textencoder | |
| 55 | 56 | // https://encoding.spec.whatwg.org/#textdecoder | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,6 @@ const { | |||
| 28 | 28 | } = require('internal/options'); | |
| 29 | 29 | const { reconnectZeroFillToggle } = require('internal/buffer'); | |
| 30 | 30 | const { | |
| 31 | - exposeInterface, | ||
| 32 | 31 | exposeLazyInterfaces, | |
| 33 | 32 | defineReplaceableLazyAttribute, | |
| 34 | 33 | setupCoverageHooks, | |
@@ -104,7 +103,6 @@ function prepareExecution(options) { | |||
| 104 | 103 | setupNavigator(); | |
| 105 | 104 | setupWarningHandler(); | |
| 106 | 105 | setupWebsocket(); | |
| 107 | - setupCustomEvent(); | ||
| 108 | 106 | setupCodeCoverage(); | |
| 109 | 107 | setupDebugEnv(); | |
| 110 | 108 | // Process initial diagnostic reporting configuration, if present. | |
@@ -341,17 +339,6 @@ function setupCodeCoverage() { | |||
| 341 | 339 | } | |
| 342 | 340 | } | |
| 343 | 341 | ||
| 344 | - // TODO(daeyeon): move this to internal/bootstrap/web/* when the CLI flag is | ||
| 345 | - // removed. | ||
| 346 | - function setupCustomEvent() { | ||
| 347 | - if (getEmbedderOptions().noBrowserGlobals || | ||
| 348 | - getOptionValue('--no-experimental-global-customevent')) { | ||
| 349 | - return; | ||
| 350 | - } | ||
| 351 | - const { CustomEvent } = require('internal/event_target'); | ||
| 352 | - exposeInterface(globalThis, 'CustomEvent', CustomEvent); | ||
| 353 | - } | ||
| 354 | - | ||
| 355 | 342 | function setupStacktracePrinterOnSigint() { | |
| 356 | 343 | if (!getOptionValue('--trace-sigint')) { | |
| 357 | 344 | return; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -402,11 +402,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { | |||
| 402 | 402 | &EnvironmentOptions::experimental_websocket, | |
| 403 | 403 | kAllowedInEnvvar, | |
| 404 | 404 | true); | |
| 405 | - AddOption("--experimental-global-customevent", | ||
| 406 | - "expose experimental CustomEvent on the global scope", | ||
| 407 | - &EnvironmentOptions::experimental_global_customevent, | ||
| 408 | - kAllowedInEnvvar, | ||
| 409 | - true); | ||
| 405 | + AddOption("--experimental-global-customevent", "", NoOp{}, kAllowedInEnvvar); | ||
| 410 | 406 | AddOption("--experimental-global-navigator", | |
| 411 | 407 | "expose experimental Navigator API on the global scope", | |
| 412 | 408 | &EnvironmentOptions::experimental_global_navigator, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,7 +111,6 @@ class EnvironmentOptions : public Options { | |||
| 111 | 111 | bool enable_source_maps = false; | |
| 112 | 112 | bool experimental_fetch = true; | |
| 113 | 113 | bool experimental_websocket = true; | |
| 114 | - bool experimental_global_customevent = true; | ||
| 115 | 114 | bool experimental_global_navigator = true; | |
| 116 | 115 | bool experimental_global_web_crypto = true; | |
| 117 | 116 | bool experimental_https_modules = false; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,6 +79,7 @@ const webIdlExposedWildcard = new Set([ | |||
| 79 | 79 | 'TextDecoder', | |
| 80 | 80 | 'AbortController', | |
| 81 | 81 | 'AbortSignal', | |
| 82 | + 'CustomEvent', | ||
| 82 | 83 | 'EventTarget', | |
| 83 | 84 | 'Event', | |
| 84 | 85 | 'URL', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,6 +100,7 @@ assert(undocumented.delete('--debug-arraybuffer-allocations')); | |||
| 100 | 100 | assert(undocumented.delete('--no-debug-arraybuffer-allocations')); | |
| 101 | 101 | assert(undocumented.delete('--es-module-specifier-resolution')); | |
| 102 | 102 | assert(undocumented.delete('--experimental-fetch')); | |
| 103 | + assert(undocumented.delete('--experimental-global-customevent')); | ||
| 103 | 104 | assert(undocumented.delete('--experimental-global-webcrypto')); | |
| 104 | 105 | assert(undocumented.delete('--experimental-report')); | |
| 105 | 106 | assert(undocumented.delete('--experimental-worker')); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments