0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Ruben Bridgewater 28e4e43e51
errors: make input mandatory
Using ERR_INVALID_ARG_TYPE will now require the received value as
well. This makes sure the errors are always expressive. It also
drops support for using an array as name argument.

PR-URL: https://github.com/nodejs/node/pull/19445
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2018-03-25 03:02:24 +02:00
..
fs lib,test: minor refactoring 2018-03-25 01:45:38 +01:00
internal errors: make input mandatory 2018-03-25 03:02:24 +02:00
_http_agent.js async_hooks,process: remove internalNextTick 2018-03-08 13:23:44 +01:00
_http_client.js lib: improve error handling 2018-03-25 03:01:45 +02:00
_http_common.js http: simplify checkInvalidHeaderChar 2018-02-16 19:27:28 +01:00
_http_incoming.js http: do not replace .read() in IncomingMessage 2018-02-27 12:26:40 +01:00
_http_outgoing.js lib: improve error handling 2018-03-25 03:01:45 +02:00
_http_server.js lib: port remaining errors to new system 2018-03-07 14:54:38 +01:00
_stream_duplex.js stream: make Duplex inherits from DuplexBase 2018-03-07 16:05:17 +01:00
_stream_passthrough.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
_stream_readable.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
_stream_transform.js stream: make virtual methods errors consistent 2018-03-12 14:24:34 +01:00
_stream_wrap.js lib: move _stream_wrap into internals 2017-10-19 18:06:27 +02:00
_stream_writable.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
_tls_common.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
_tls_wrap.js lib: improve error handling 2018-03-25 03:01:45 +02:00
.eslintrc.yaml tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
assert.js tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
async_hooks.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
buffer.js lib: improve error handling 2018-03-25 03:01:45 +02:00
child_process.js tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
cluster.js lib: use consistent indentation for ternaries 2017-07-07 06:57:16 -07:00
console.js console: port errors to new system 2018-02-22 13:36:22 +00:00
constants.js src: add support to pass flags to dlopen 2017-09-08 17:14:03 -04:00
crypto.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
dgram.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
dns.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
domain.js tools,lib: forbid native Error constructors 2018-03-21 20:15:33 +01:00
events.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
fs.js lib,test: minor refactoring 2018-03-25 01:45:38 +01:00
http2.js http2: refactor error handling 2017-08-28 00:39:42 +04:00
http.js http: use more destructuring 2018-03-22 16:23:06 +01:00
https.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
inspector.js inspector: migrate errors from C++ to JS 2018-03-22 08:24:31 +01:00
module.js lib: add back lib/module.js redirection 2018-03-15 20:50:35 +08:00
net.js fs,net: emit 'ready' for fs streams and sockets 2018-03-23 13:33:55 +01:00
os.js lib,src: audit process.env in lib/ for setuid binary 2018-02-16 17:42:21 +01:00
path.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
perf_hooks.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: remove let from for loops 2016-10-04 12:17:32 -04:00
querystring.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
readline.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
repl.js lib: restructure cjs and esm loaders 2018-03-15 20:50:35 +08:00
stream.js tools: non-Ascii linter for /lib only 2018-02-04 16:55:13 +01:00
string_decoder.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
sys.js meta: restore original copyright header 2017-03-10 11:23:48 -08:00
timers.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
tls.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
tty.js lib: port errors to new system 2018-03-05 19:51:30 +01:00
url.js url: remove redundant function 2018-03-23 13:01:47 +01:00
util.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
v8.js lib: always show ERR_INVALID_ARG_TYPE received part 2018-03-25 01:45:37 +01:00
vm.js vm: migrate isContext to internal/errors 2018-03-22 15:54:52 +01:00
zlib.js lib,test: minor refactoring 2018-03-25 01:45:38 +01:00