doc: add documentation for deprecation properties

PR-URL: https://github.com/nodejs/node/pull/16539
Fixes: https://github.com/nodejs/node/issues/16394
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Jon Moss authored and Myles Borins committed 2018-02-27 00:38:13 -05:00
1 parent 98579decd7
commit 5607f587b2
1 file changed
+39
+39
View File
@@ -1342,6 +1342,19 @@ event loop **before** additional I/O is processed. As a result,
recursively setting nextTick callbacks will block any I/O from
happening, just like a `while(true);` loop.
## process.noDeprecation
<!-- YAML
added: v0.8.0
-->
* {boolean}
The `process.noDeprecation` property indicates whether the `--no-deprecation`
flag is set on the current Node.js process. See the documentation for
the [`warning` event][process_warning] and the
[`emitWarning` method][process_emit_warning] for more information about this
flag's behavior.
## process.pid
<!-- YAML
added: v0.1.15
@@ -1692,6 +1705,19 @@ false
See the [TTY][] documentation for more information.
## process.throwDeprecation
<!-- YAML
added: v0.9.12
-->
* {boolean}
The `process.throwDeprecation` property indicates whether the
`--throw-deprecation` flag is set on the current Node.js process. See the
documentation for the [`warning` event][process_warning] and the
[`emitWarning` method][process_emit_warning] for more information about this
flag's behavior.
## process.title
<!-- YAML
added: v0.1.104
@@ -1712,6 +1738,19 @@ process. Node.js v0.8 allowed for longer process title strings by also
overwriting the `environ` memory but that was potentially insecure and
confusing in some (rather obscure) cases.
## process.traceDeprecation
<!-- YAML
added: v0.8.0
-->
* {boolean}
The `process.traceDeprecation` property indicates whether the
`--trace-deprecation` flag is set on the current Node.js process. See the
documentation for the [`warning` event][process_warning] and the
[`emitWarning` method][process_emit_warning] for more information about this
flag's behavior.
## process.umask([mask])
<!-- YAML
added: v0.1.19