mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
errors: assign error code to bootstrap_node created error
This does not use the internal/errors.js module because the error in question may actually be *caused* by an attempt to load internal/errors.js. This error should only be encountered in the case of a bug within Node.js itself. PR-URL: https://github.com/nodejs/node/pull/11298 Ref: https://github.com/nodejs/node/issues/11273 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
1 parent
37699070cc
commit
251e5ed8ee
3 files changed
+18
-1
No files matched your search
@@ -558,6 +558,7 @@ found [here][online].
|
||||
encountered by [`http`][] or [`net`][] -- often a sign that a `socket.end()`
|
||||
was not properly called.
|
||||
|
||||
|
||||
<a id="nodejs-error-codes"></a>
|
||||
## Node.js Error Codes
|
||||
|
||||
@@ -587,6 +588,14 @@ An error using the `'ERR_STDOUT_CLOSE'` code is thrown specifically when an
|
||||
attempt is made to close the `process.stdout` stream. By design, Node.js does
|
||||
not allow `stdout` or `stderr` Streams to be closed by user code.
|
||||
|
||||
<a id="ERR_UNKNOWN_BUILTIN_MODULE"></a>
|
||||
### ERR_UNKNOWN_BUILTIN_MODULE
|
||||
|
||||
The `'ERR_UNKNOWN_BUILTIN_MODULE'` error code is used to identify a specific
|
||||
kind of internal Node.js error that should not typically be triggered by user
|
||||
code. Instances of this error point to an internal bug within the Node.js
|
||||
binary itself.
|
||||
|
||||
<a id="ERR_UNKNOWN_STDIN_TYPE"></a>
|
||||
### ERR_UNKNOWN_STDIN_TYPE
|
||||
|
||||
@@ -605,6 +614,7 @@ an attempt is made to launch a Node.js process with an unknown `stdout` or
|
||||
in user code, although it is not impossible. Occurrences of this error are most
|
||||
likely an indication of a bug within Node.js itself.
|
||||
|
||||
|
||||
[`fs.readdir`]: fs.html#fs_fs_readdir_path_options_callback
|
||||
[`fs.readFileSync`]: fs.html#fs_fs_readfilesync_file_options
|
||||
[`fs.unlink`]: fs.html#fs_fs_unlink_path_callback
|
||||
|
||||
Reference in new issue
Block a user