0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Ruben Bridgewater 1ed3c54ecb
errors: update error name
This updates all Node.js errors by removing the `code` being part
of the `name` property. Instead, the name is just changed once on
instantiation, the stack is accessed to create the stack as expected
and then the `name` property is set back to it's original form.

PR-URL: https://github.com/nodejs/node/pull/26738
Fixes: https://github.com/nodejs/node/issues/26669
Fixes: https://github.com/nodejs/node/issues/20253
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2019-03-23 02:55:54 +01:00
..
internal errors: update error name 2019-03-23 02:55:54 +01:00
_http_agent.js http: reduce usage of public util 2019-03-12 06:40:57 +01:00
_http_client.js lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08:00
_http_common.js http: reduce usage of public util 2019-03-12 06:40:57 +01:00
_http_incoming.js
_http_outgoing.js http: delay ret declaration in method _flushOutput 2019-03-15 10:23:02 +01:00
_http_server.js lib: move DTRACE_* probes out of global scope 2019-03-12 14:19:36 +00:00
_stream_duplex.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
_stream_passthrough.js
_stream_readable.js lib: move extra properties into error creation 2019-03-21 22:52:08 +01:00
_stream_transform.js stream: make sure 'readable' is emitted before ending the stream 2019-03-06 08:38:29 +00:00
_stream_wrap.js lib: assign missed deprecation code 2019-03-07 15:48:55 +01:00
_stream_writable.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
_tls_common.js tls: support TLSv1.3 2019-03-20 07:48:25 -07:00
_tls_wrap.js tls: support TLSv1.3 2019-03-20 07:48:25 -07:00
.eslintrc.yaml lib,test: improve faulty assert usage detection 2019-03-13 18:50:35 +01:00
assert.js assert: reduce internal usage of public require of util 2019-03-22 00:42:55 +01:00
async_hooks.js async_hooks: remove deprecated emitBefore and emitAfter 2019-03-18 11:36:48 +01:00
buffer.js buffer: harden SlowBuffer creation 2019-03-11 09:46:29 +01:00
child_process.js child_process: reduce internal usage of public require of util 2019-03-22 12:41:25 +08:00
cluster.js
console.js
constants.js
crypto.js crypto: expose KeyObject class 2019-03-17 10:53:58 +01:00
dgram.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
dns.js
domain.js domain: set .domain non-enumerable on resources 2019-03-13 00:07:42 +00:00
events.js events: load internal/errors eagerly 2019-03-22 00:40:57 +01:00
fs.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
http2.js
http.js
https.js
inspector.js inspector: return Error objects on error 2019-02-26 16:44:47 -05:00
module.js
net.js lib: move extra properties into error creation 2019-03-21 22:52:08 +01:00
os.js
path.js path: refactor code for clarity 2019-03-01 14:55:33 +01:00
perf_hooks.js perf_hooks: load internal/errors eagerly 2019-03-22 00:41:09 +01:00
process.js
punycode.js
querystring.js benchmark,doc,lib,test: capitalize comments 2019-02-28 18:31:10 +01:00
readline.js readline: support TERM=dumb 2019-03-21 23:33:55 +01:00
repl.js repl: check colors with .getColorDepth() 2019-03-21 23:34:14 +01:00
stream.js stream: reduce internal usage of public require of util 2019-03-22 00:48:32 +01:00
string_decoder.js
sys.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
timers.js timers: move big impl comment to /internal/ 2019-03-20 17:11:32 -07:00
tls.js lib: move extra properties into error creation 2019-03-21 22:52:08 +01:00
trace_events.js
tty.js tty: add hasColors function 2019-03-05 18:37:39 +01:00
url.js lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08:00
util.js util: extract uncurryThis function for reuse 2019-03-21 23:07:48 +01:00
v8.js v8: integrate node-heapdump into core 2019-03-13 15:50:32 +00:00
vm.js
worker_threads.js worker: implement worker.moveMessagePortToContext() 2019-03-15 16:54:19 +01:00
zlib.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00