Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConorDavenport <cnrdavenport@gmail.com>2020-02-27 14:41:05 +0300
committerJames M Snell <jasnell@gmail.com>2020-04-23 20:11:47 +0300
commit50d28d4b3a616b04537feff014aa70437f064e30 (patch)
tree071a416ff706a11ed1abd2388fd401d301764a37 /lib/internal/errors.js
parent01e158c600d451bcbb3da4d276a9e61dcc84ebe4 (diff)
assert: port common.mustCall() to assert
Fixes: https://github.com/nodejs/node/issues/31392 PR-URL: https://github.com/nodejs/node/pull/31982 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'lib/internal/errors.js')
-rw-r--r--lib/internal/errors.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/internal/errors.js b/lib/internal/errors.js
index fa009b90465..aa15de1fb50 100644
--- a/lib/internal/errors.js
+++ b/lib/internal/errors.js
@@ -1377,6 +1377,8 @@ E('ERR_TRACE_EVENTS_UNAVAILABLE', 'Trace events are unavailable', Error);
// This should probably be a `RangeError`.
E('ERR_TTY_INIT_FAILED', 'TTY initialization failed', SystemError);
+E('ERR_UNAVAILABLE_DURING_EXIT', 'Cannot call function in process exit ' +
+ 'handler', Error);
E('ERR_UNCAUGHT_EXCEPTION_CAPTURE_ALREADY_SET',
'`process.setupUncaughtExceptionCapture()` was called while a capture ' +
'callback was already active',