From a7521d549a2356cadc49a0137215404a42bd2cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Sun, 8 Sep 2019 13:30:07 -0500 Subject: [PATCH 1/4] doc: add code example to process.throwDeprecation property --- doc/api/process.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/api/process.md b/doc/api/process.md index 7922c36c2889bf..b6b40209ee4fd0 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2228,6 +2228,13 @@ documentation for the [`'warning'` event][process_warning] and the [`emitWarning()` method][process_emit_warning] for more information about this flag's behavior. +```console +$ node --throw-deprecation -p "process.throwDeprecation" +true +$ node -p "process.throwDeprecation" +undefined +``` + ## process.title