node/test/fixtures/es-module-loaders
Wei Zhu c0aebed4b3
esm: fix inconsistency with importAssertion in resolve hook
As the documentation states, the `context.importAssertion` should be
still supported and emit a warning. This is true for the `load` hook,
but not correct for context of the `resolve` hook.

This commit fixes the inconsistency.

PR-URL: https://github.com/nodejs/node/pull/55365
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2024-10-15 21:02:07 +02:00
..
never-settling-resolve-step
node_modules
assertionless-json-import.mjs
builtin-named-exports-loader.mjs module: unflag detect-module 2024-07-20 18:30:46 +00:00
builtin-named-exports.mjs
byop-dummy-loader.mjs
example-loader.mjs
hook-resolve-type-loader.mjs
hook-resolve-type.mjs
hooks-custom.mjs
hooks-initialize-port.mjs
hooks-initialize.mjs
hooks-input.mjs esm: fix inconsistency with importAssertion in resolve hook 2024-10-15 21:02:07 +02:00
http-loader.mjs
js-as-esm.js
loader-dep.js
loader-edge-cases.mjs
loader-invalid-format.mjs
loader-invalid-url.mjs
loader-load-bad-next-context.mjs
loader-load-bad-next-url.mjs
loader-load-dynamic-import.mjs
loader-load-foo-or-42.mjs
loader-load-impersonating-next-url.mjs
loader-load-incomplete.mjs
loader-load-next-modified.mjs
loader-load-null-return.mjs
loader-load-passing-modified-context.mjs
loader-load-passthru.mjs
loader-load-receiving-modified-context.mjs
loader-log-args.mjs
loader-resolve-42.mjs
loader-resolve-bad-next-context.mjs
loader-resolve-bad-next-specifier.mjs
loader-resolve-dynamic-import.mjs
loader-resolve-foo.mjs
loader-resolve-incomplete.mjs
loader-resolve-multiple-next-calls.mjs
loader-resolve-next-modified.mjs
loader-resolve-null-return.mjs
loader-resolve-passing-modified-context.mjs
loader-resolve-passthru.mjs
loader-resolve-receiving-modified-context.mjs
loader-resolve-shortcircuit.mjs
loader-resolve-strip-xxx.mjs
loader-resolve-strip-yyy.mjs
loader-shared-dep.mjs
loader-this-value-inside-hook-functions.mjs
loader-unknown-builtin-module.mjs
loader-with-custom-condition.mjs module: unflag --experimental-require-module 2024-09-26 14:21:37 +00:00
loader-with-dep.mjs
loader-with-too-many-args.mjs
missing-dynamic-instantiate-hook.mjs
mock-loader.mjs
mock.mjs
module-named-exports.mjs
not-found-assert-loader.mjs
preset-cjs-source.mjs
register-loader.cjs
register-loader.mjs
register-programmatically-loader-load.mjs
register-programmatically-loader-resolve.mjs
string-sources.mjs
syntax-error.mjs
thenable-load-hook-rejected-no-arguments.mjs
thenable-load-hook-rejected.mjs
thenable-load-hook.mjs
throw-undefined.mjs