0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/test/internet
Ruben Bridgewater ac2fc0dd5f
errors: improve ERR_INVALID_ARG_TYPE
ERR_INVALID_ARG_TYPE is the most common error used throughout the
code base. This improves the error message by providing more details
to the user and by indicating more precisely which values are allowed
ones and which ones are not.

It adds the actual input to the error message in case it's a primitive.
If it's a class instance, it'll print the class name instead of
"object" and "falsy" or similar entries are not named "type" anymore.

PR-URL: https://github.com/nodejs/node/pull/29675
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-12-20 03:10:13 +01:00
..
test-dgram-broadcast-multi-process.js
test-dgram-connect.js
test-dgram-membership.js
test-dgram-multicast-multi-process.js
test-dgram-multicast-set-interface-lo.js test: refactor test-dgram-multicast-set-interface-lo.js 2019-11-21 21:52:56 -08:00
test-dgram-multicast-ssm-multi-process.js
test-dgram-multicast-ssmv6-multi-process.js
test-dns-any.js
test-dns-cares-domains.js
test-dns-idna2008.js
test-dns-ipv4.js
test-dns-ipv6.js
test-dns-lookup.js
test-dns-promises-resolve.js errors: improve ERR_INVALID_ARG_TYPE 2019-12-20 03:10:13 +01:00
test-dns-regress-6244.js
test-dns-setserver-in-callback-of-resolve4.js
test-dns-txt-sigsegv.js
test-dns.js
test-http-dns-fail.js
test-http-https-default-ports.js
test-inspector-help-page.js
test-net-connect-timeout.js
test-net-connect-unref.js
test-tls-add-ca-cert.js
test-tls-connnect-melissadata.js
test-tls-reuse-host-from-socket.js
test-trace-events-dns.js
test-uv-threadpool-schedule.js
testcfg.py