0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/es-module
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
..
es-module.status
test-cjs-esm-warn.js module: fixup lint and test regressions 2019-12-05 02:49:17 -05:00
test-esm-basic-imports.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-cjs-load-error-note.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-cjs-main.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-cyclic-dynamic-import.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-data-urls.js benchmark,doc,lib,test: prepare for padding lint rule 2019-11-30 06:28:29 -08:00
test-esm-default-type.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-double-encoding.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-dynamic-import.js lib: add warning on dynamic import es modules 2019-12-06 23:07:56 -05:00
test-esm-encoded-path-native.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-encoded-path.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-error-cache.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-example-loader.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-exports.mjs module: conditional exports import condition 2019-12-12 17:35:08 -05:00
test-esm-forbidden-globals.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-import-meta.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-invalid-extension.js lib: add parent to ERR_UNKNOWN_FILE_EXTENSION 2019-12-06 23:59:39 -05:00
test-esm-json-cache.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-json.mjs module: add warnings for experimental flags 2019-12-04 22:36:37 -05:00
test-esm-live-binding.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-loader-cache-clearing.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-loader-dependency.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-loader-invalid-format.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-loader-invalid-url.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-loader-missing-dynamic-instantiate-hook.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-loader-modulemap.js errors: improve ERR_INVALID_ARG_TYPE 2019-12-20 03:10:13 +01:00
test-esm-loader-search.js
test-esm-main-lookup.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-named-exports.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-namespace.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-no-extension.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-non-js.js esm: disable non-js exts outside package scopes 2019-11-16 23:26:49 -08:00
test-esm-pkgname.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-preserve-symlinks-main.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-preserve-symlinks-not-found-plain.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-preserve-symlinks-not-found.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-preserve-symlinks.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-process.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-repl.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-require-cache.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-resolve-hook.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-scope-node-modules.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-shared-loader-dep.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-shebang.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-snapshot.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-specifiers-both-flags.mjs module: fixup lint and test regressions 2019-12-05 02:49:17 -05:00
test-esm-specifiers-legacy-flag.mjs esm: make specifier flag clearly experimental 2019-12-04 13:21:41 -08:00
test-esm-specifiers.mjs esm: make specifier flag clearly experimental 2019-12-04 13:21:41 -08:00
test-esm-symlink-main.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-symlink-type.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-symlink.js esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-throw-undefined.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-type-flag-errors.js lib,test: improves ERR_REQUIRE_ESM message 2019-12-04 23:25:10 -05:00
test-esm-type-flag.mjs esm: unflag --experimental-modules 2019-11-12 14:04:55 -08:00
test-esm-wasm.mjs module: add warnings for experimental flags 2019-12-04 22:36:37 -05:00
test-esm-windows.js test: use tmpdir.refresh() in test-esm-windows.js 2019-12-18 09:23:49 -05:00
testcfg.py