From 4ceb9d56e8a412201e250a534ab07af84a014ff8 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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 1d29a76306e68a..249d30bea9bb3e 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -3171,10 +3171,13 @@ 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