0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Ruben Bridgewater 39f4158bc3
lib: move extra properties into error creation
This encapsulates the Node.js errors more by adding extra properties
to an error inside of the function to create the error message instead
of adding the properties at the call site. That simplifies the usage
of our errors and makes sure the expected properties are always set.

PR-URL: https://github.com/nodejs/node/pull/26752
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2019-03-21 22:52:08 +01:00
..
internal lib: move extra properties into error creation 2019-03-21 22:52:08 +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: improve performance for incoming headers 2019-02-13 21:25:20 +08:00
_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 lib: use ES6 class inheritance style 2018-12-05 16:55:00 +01:00
_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 lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08: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 lib: use Array#includes instead of Array#indexOf 2019-03-21 21:38:02 +08:00
cluster.js
console.js console: split console into global.js and constructor.js 2018-12-02 04:51:18 +08:00
constants.js src,lib: move natives and constants to internalBinding() 2018-10-21 03:17:12 +02:00
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 dns: use IDNA 2008 to encode non-ascii hostnames 2019-01-28 20:42:44 +01:00
domain.js domain: set .domain non-enumerable on resources 2019-03-13 00:07:42 +00:00
events.js events: improve for-loop 2019-03-05 02:04:32 +01:00
fs.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
http2.js http2: order declarations in http2.js 2018-11-20 10:42:31 -08:00
http.js lib: support overriding http\s.globalAgent 2019-01-08 00:10:36 +01:00
https.js tls: introduce client 'session' event 2019-02-01 19:06:58 -08:00
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 src: simplify loop arithmetic in GetCPUInfo 2019-02-21 08:45:40 +01:00
path.js path: refactor code for clarity 2019-03-01 14:55:33 +01:00
perf_hooks.js perf_hooks: implement histogram based api 2019-02-08 09:20:18 -08:00
process.js
punycode.js lib: update punycode to 2.1.1 2018-07-16 15:55:15 -07:00
querystring.js benchmark,doc,lib,test: capitalize comments 2019-02-28 18:31:10 +01:00
readline.js lib: refactor deprecated function in readline.js 2019-03-13 16:27:20 +01:00
repl.js repl: remove redundant initialization 2019-03-15 10:23:12 +01:00
stream.js tools: lint for unused catch bindings 2018-11-06 10:59:27 -05:00
string_decoder.js bootstrapper: move internalBinding to NativeModule 2018-10-04 11:55:34 +02:00
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 src: split ownsProcessState off isMainThread 2019-02-05 21:55:54 +01:00
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 lib: explicitly initialize debuglog during bootstrap 2019-03-08 13:57:38 +01:00
v8.js v8: integrate node-heapdump into core 2019-03-13 15:50:32 +00:00
vm.js inspector,vm: remove --eval wrapper 2019-02-03 20:40:16 +01:00
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