diff --git a/doc/api/errors.md b/doc/api/errors.md index b9d26421497fde..b00976e74f1050 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -818,23 +818,6 @@ A signing `key` was not provided to the [`sign.sign()`][] method. `c-ares` failed to set the DNS server. - -### ERR_DOMAIN_CALLBACK_NOT_AVAILABLE - -The `domain` module was not usable since it could not establish the required -error handling hooks, because -[`process.setUncaughtExceptionCaptureCallback()`][] had been called at an -earlier point in time. - - -### ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE - -[`process.setUncaughtExceptionCaptureCallback()`][] could not be called -because the `domain` module has been loaded at an earlier point in time. - -The stack trace is extended to include the point in time at which the -`domain` module had been loaded. - ### ERR_ENCODING_INVALID_ENCODED_DATA diff --git a/doc/api/repl.md b/doc/api/repl.md index 324b15f3852288..703286843ad86a 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -142,11 +142,8 @@ global or scoped variable, the input `fs` will be evaluated on-demand as The REPL uses the [`domain`][] module to catch all uncaught exceptions for that REPL session. -This use of the [`domain`][] module in the REPL has these side effects: - -* Uncaught exceptions do not emit the [`'uncaughtException'`][] event. -* Trying to use [`process.setUncaughtExceptionCaptureCallback()`][] throws - an [`ERR_DOMAIN_CANNOT_SET_UNCAUGHT_EXCEPTION_CAPTURE`][] error. +This use of the [`domain`][] module in the REPL has the side effect of making +uncaught exceptions not emit the [`'uncaughtException'`][] event. #### Assignment of the `_` (underscore) variable