Skip to content

Commit 8f6bd5a

Browse files
kvakiljuanarbol
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 <[email protected]> Reviewed-By: Feng Yu <[email protected]>
1 parent cefb058 commit 8f6bd5a

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

doc/api/cli.md

+3
Original file line numberDiff line numberDiff line change
@@ -1195,8 +1195,11 @@ for TLSv1.2, which is not as secure as TLSv1.3.
11951195

11961196
<!-- YAML
11971197
added: v14.3.0
1198+
deprecated: REPLACEME
11981199
-->
11991200

1201+
> Stability: 0 - Deprecated
1202+
12001203
Print short summaries of calls to [`Atomics.wait()`][] to stderr.
12011204
The output could look like this:
12021205

doc/api/deprecations.md

+14
Original file line numberDiff line numberDiff line change
@@ -3134,13 +3134,27 @@ Type: Documentation-only
31343134
`code` values other than `undefined`, `null`, integer numbers and integer
31353135
strings (e.g., '1') are deprecated as parameter in [`process.exit()`][].
31363136

3137+
### DEP0165: `--trace-atomics-wait`
3138+
3139+
<!-- YAML
3140+
changes:
3141+
- version: REPLACEME
3142+
pr-url: https://github.com/nodejs/node/pull/44093
3143+
description: Documentation-only deprecation.
3144+
-->
3145+
3146+
Type: Documentation-only
3147+
3148+
The [`--trace-atomics-wait`][] flag is deprecated.
3149+
31373150
[Legacy URL API]: url.md#legacy-url-api
31383151
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
31393152
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
31403153
[WHATWG URL API]: url.md#the-whatwg-url-api
31413154
[`"exports"` or `"main"` entry]: packages.md#main-entry-point-export
31423155
[`--pending-deprecation`]: cli.md#--pending-deprecation
31433156
[`--throw-deprecation`]: cli.md#--throw-deprecation
3157+
[`--trace-atomics-wait`]: cli.md#--trace-atomics-wait
31443158
[`--unhandled-rejections`]: cli.md#--unhandled-rejectionsmode
31453159
[`Buffer.allocUnsafeSlow(size)`]: buffer.md#static-method-bufferallocunsafeslowsize
31463160
[`Buffer.from(array)`]: buffer.md#static-method-bufferfromarray

doc/node.1

+1
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ favour of TLSv1.3, which is more secure.
429429
Print short summaries of calls to
430430
.Sy Atomics.wait() .
431431
.
432+
This flag is deprecated.
432433
.It Fl -trace-deprecation
433434
Print stack traces for deprecations.
434435
.

src/node_options.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
539539
&EnvironmentOptions::throw_deprecation,
540540
kAllowedInEnvironment);
541541
AddOption("--trace-atomics-wait",
542-
"trace Atomics.wait() operations",
542+
"(deprecated) trace Atomics.wait() operations",
543543
&EnvironmentOptions::trace_atomics_wait,
544544
kAllowedInEnvironment);
545545
AddOption("--trace-deprecation",

0 commit comments

Comments
 (0)