Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Sep 14, 2023
1 parent ffb80d0 commit 24f23b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/internal/modules/esm/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require('internal/modules/cjs/loader');
const {
ArrayPrototypeJoin,
ArrayPrototypeMap,
encodeURI,
FunctionPrototypeCall,
JSONStringify,
ObjectSetPrototypeOf,
Expand Down Expand Up @@ -522,7 +523,7 @@ function createModuleLoader(useCustomLoadersIfPresent = true) {
'`--experimental-loader` may be removed in the future; instead use `register()`:\n' +
`--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; ${ArrayPrototypeJoin(
ArrayPrototypeMap(userLoaderPaths, (loader) => `register(${JSONStringify(encodeURI(loader))}, pathToFileURL("./"))`),
"; ",
'; ',
)};'`,
'ExperimentalWarning',
);
Expand Down
2 changes: 1 addition & 1 deletion test/es-module/test-esm-experimental-warnings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('ESM: warn for obsolete hooks provided', { concurrency: true }, () => {
) {
it(`should print for ${experiment.toString().replaceAll('/', '')}`, async () => {
const { code, signal, stderr } = await spawnPromisified(execPath, [
arg,
...args,
'--input-type=module',
'--eval',
`import ${JSON.stringify(fileURL('es-module-loaders', 'module-named-exports.mjs'))}`,
Expand Down

0 comments on commit 24f23b5

Please sign in to comment.