From ebb3811a6bfc8fbe17dc81e196ccff5ef6e44a98 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Sun, 18 Sep 2022 20:15:06 +0900 Subject: [PATCH] doc: update the deprecation for exit code to clarify its scope This updates the deprecation, DEP0164, to clarify its scope. Previously, `process.exitCode` wasn't mentioned but it needs to be applied with the same deprecation because its meaning is the same as the `code` value and it's overridden with the `code` value in `process.exit()`. Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com --- doc/api/deprecations.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 1d29a76306e68a..b0edb731b02c94 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3171,10 +3171,14 @@ Use [`diagnostics_channel.subscribe(name, onMessage)`][] or [`diagnostics_channel.unsubscribe(name, onMessage)`][] which does the same thing instead. -### DEP0164: `process.exit([code])` coercion to integer +### DEP0164: `process.exit(code)`, `process.exitCode` coercion to integer