Skip to content

Commit 5607f58

Browse files
maclover7MylesBorins
authored andcommitted
doc: add documentation for deprecation properties
PR-URL: #16539 Fixes: #16394 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 98579de commit 5607f58

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

doc/api/process.md

+39
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,19 @@ event loop **before** additional I/O is processed. As a result,
13421342
recursively setting nextTick callbacks will block any I/O from
13431343
happening, just like a `while(true);` loop.
13441344

1345+
## process.noDeprecation
1346+
<!-- YAML
1347+
added: v0.8.0
1348+
-->
1349+
1350+
* {boolean}
1351+
1352+
The `process.noDeprecation` property indicates whether the `--no-deprecation`
1353+
flag is set on the current Node.js process. See the documentation for
1354+
the [`warning` event][process_warning] and the
1355+
[`emitWarning` method][process_emit_warning] for more information about this
1356+
flag's behavior.
1357+
13451358
## process.pid
13461359
<!-- YAML
13471360
added: v0.1.15
@@ -1692,6 +1705,19 @@ false
16921705

16931706
See the [TTY][] documentation for more information.
16941707

1708+
## process.throwDeprecation
1709+
<!-- YAML
1710+
added: v0.9.12
1711+
-->
1712+
1713+
* {boolean}
1714+
1715+
The `process.throwDeprecation` property indicates whether the
1716+
`--throw-deprecation` flag is set on the current Node.js process. See the
1717+
documentation for the [`warning` event][process_warning] and the
1718+
[`emitWarning` method][process_emit_warning] for more information about this
1719+
flag's behavior.
1720+
16951721
## process.title
16961722
<!-- YAML
16971723
added: v0.1.104
@@ -1712,6 +1738,19 @@ process. Node.js v0.8 allowed for longer process title strings by also
17121738
overwriting the `environ` memory but that was potentially insecure and
17131739
confusing in some (rather obscure) cases.
17141740

1741+
## process.traceDeprecation
1742+
<!-- YAML
1743+
added: v0.8.0
1744+
-->
1745+
1746+
* {boolean}
1747+
1748+
The `process.traceDeprecation` property indicates whether the
1749+
`--trace-deprecation` flag is set on the current Node.js process. See the
1750+
documentation for the [`warning` event][process_warning] and the
1751+
[`emitWarning` method][process_emit_warning] for more information about this
1752+
flag's behavior.
1753+
17151754
## process.umask([mask])
17161755
<!-- YAML
17171756
added: v0.1.19

0 commit comments

Comments
 (0)