summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2022-10-06 20:41:16 +0800
committerGitHub <noreply@github.com>2022-10-06 12:41:16 +0000
commitbe525d7d04ec839fd2bb47affef00bb3c1302aca (patch)
treec7f200aae4b1cd8a87b4cf5e082f65646a62c533 /node.gyp
parent66cedb4600f3f4f6d5514cddf7ff27525f464e64 (diff)
downloadnode-new-be525d7d04ec839fd2bb47affef00bb3c1302aca.tar.gz
src: consolidate exit codes in the code base
Add an ExitCode enum class and use it throughout the code base instead of hard-coding the exit codes everywhere. At the moment, the exit codes used in many places do not actually conform to what the documentation describes. With the new enums (which are also available to the JS land as constants in an internal binding) we could migrate to a more consistent usage of the codes, and eventually expose the constants to the user land when they are stable enough. PR-URL: https://github.com/nodejs/node/pull/44746 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 53477f967d..16b7515f00 100644
--- a/node.gyp
+++ b/node.gyp
@@ -600,6 +600,7 @@
'src/node_contextify.h',
'src/node_dir.h',
'src/node_errors.h',
+ 'src/node_exit_code.h',
'src/node_external_reference.h',
'src/node_file.h',
'src/node_file-inl.h',