Skip to content

Commit 68c4e45

Browse files
kvakildanielleadams
authored andcommitted
doc,worker: deprecate --trace-atomics-wait
V8 has asked if it possible to remove the functionality underlying `--trace-atomics-wait`. Let's start with a documentation-only deprecation. PR-URL: #44093 Refs: #42982 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Feng Yu <F3n67u@outlook.com>
1 parent a36befa commit 68c4e45

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

doc/api/cli.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,11 @@ for TLSv1.2, which is not as secure as TLSv1.3.
12891289

12901290
<!-- YAML
12911291
added: v14.3.0
1292+
deprecated: REPLACEME
12921293
-->
12931294

1295+
> Stability: 0 - Deprecated
1296+
12941297
Print short summaries of calls to [`Atomics.wait()`][] to stderr.
12951298
The output could look like this:
12961299

doc/api/deprecations.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3169,13 +3169,27 @@ Type: Documentation-only
31693169
`code` values other than `undefined`, `null`, integer numbers and integer
31703170
strings (e.g., '1') are deprecated as parameter in [`process.exit()`][].
31713171

3172+
### DEP0165: `--trace-atomics-wait`
3173+
3174+
<!-- YAML
3175+
changes:
3176+
- version: REPLACEME
3177+
pr-url: https://github.com/nodejs/node/pull/44093
3178+
description: Documentation-only deprecation.
3179+
-->
3180+
3181+
Type: Documentation-only
3182+
3183+
The [`--trace-atomics-wait`][] flag is deprecated.
3184+
31723185
[Legacy URL API]: url.md#legacy-url-api
31733186
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
31743187
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
31753188
[WHATWG URL API]: url.md#the-whatwg-url-api
31763189
[`"exports"` or `"main"` entry]: packages.md#main-entry-point-export
31773190
[`--pending-deprecation`]: cli.md#--pending-deprecation
31783191
[`--throw-deprecation`]: cli.md#--throw-deprecation
3192+
[`--trace-atomics-wait`]: cli.md#--trace-atomics-wait
31793193
[`--unhandled-rejections`]: cli.md#--unhandled-rejectionsmode
31803194
[`Buffer.allocUnsafeSlow(size)`]: buffer.md#static-method-bufferallocunsafeslowsize
31813195
[`Buffer.from(array)`]: buffer.md#static-method-bufferfromarray

doc/node.1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ favour of TLSv1.3, which is more secure.
432432
Print short summaries of calls to
433433
.Sy Atomics.wait() .
434434
.
435+
This flag is deprecated.
435436
.It Fl -trace-deprecation
436437
Print stack traces for deprecations.
437438
.

src/node_options.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
540540
&EnvironmentOptions::throw_deprecation,
541541
kAllowedInEnvironment);
542542
AddOption("--trace-atomics-wait",
543-
"trace Atomics.wait() operations",
543+
"(deprecated) trace Atomics.wait() operations",
544544
&EnvironmentOptions::trace_atomics_wait,
545545
kAllowedInEnvironment);
546546
AddOption("--trace-deprecation",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy