Skip to content

Commit f8f809b

Browse files
maclover7evanlucas
authored andcommitted
doc: add documentation for deprecation properties
PR-URL: #16539 Fixes: #16394 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 0e8596e commit f8f809b

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
@@ -1405,6 +1405,19 @@ event loop **before** additional I/O is processed. As a result,
14051405
recursively setting nextTick callbacks will block any I/O from
14061406
happening, just like a `while(true);` loop.
14071407

1408+
## process.noDeprecation
1409+
<!-- YAML
1410+
added: v0.8.0
1411+
-->
1412+
1413+
* {boolean}
1414+
1415+
The `process.noDeprecation` property indicates whether the `--no-deprecation`
1416+
flag is set on the current Node.js process. See the documentation for
1417+
the [`warning` event][process_warning] and the
1418+
[`emitWarning` method][process_emit_warning] for more information about this
1419+
flag's behavior.
1420+
14081421
## process.pid
14091422
<!-- YAML
14101423
added: v0.1.15
@@ -1778,6 +1791,19 @@ false
17781791

17791792
See the [TTY][] documentation for more information.
17801793

1794+
## process.throwDeprecation
1795+
<!-- YAML
1796+
added: v0.9.12
1797+
-->
1798+
1799+
* {boolean}
1800+
1801+
The `process.throwDeprecation` property indicates whether the
1802+
`--throw-deprecation` flag is set on the current Node.js process. See the
1803+
documentation for the [`warning` event][process_warning] and the
1804+
[`emitWarning` method][process_emit_warning] for more information about this
1805+
flag's behavior.
1806+
17811807
## process.title
17821808
<!-- YAML
17831809
added: v0.1.104
@@ -1798,6 +1824,19 @@ process. Node.js v0.8 allowed for longer process title strings by also
17981824
overwriting the `environ` memory but that was potentially insecure and
17991825
confusing in some (rather obscure) cases.
18001826

1827+
## process.traceDeprecation
1828+
<!-- YAML
1829+
added: v0.8.0
1830+
-->
1831+
1832+
* {boolean}
1833+
1834+
The `process.traceDeprecation` property indicates whether the
1835+
`--trace-deprecation` flag is set on the current Node.js process. See the
1836+
documentation for the [`warning` event][process_warning] and the
1837+
[`emitWarning` method][process_emit_warning] for more information about this
1838+
flag's behavior.
1839+
18011840
## process.umask([mask])
18021841
<!-- YAML
18031842
added: v0.1.19

0 commit comments

Comments
 (0)