Skip to content

Commit 24f23b5

Browse files
committed
lint
1 parent ffb80d0 commit 24f23b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/internal/modules/esm/loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ require('internal/modules/cjs/loader');
66
const {
77
ArrayPrototypeJoin,
88
ArrayPrototypeMap,
9+
encodeURI,
910
FunctionPrototypeCall,
1011
JSONStringify,
1112
ObjectSetPrototypeOf,
@@ -522,7 +523,7 @@ function createModuleLoader(useCustomLoadersIfPresent = true) {
522523
'`--experimental-loader` may be removed in the future; instead use `register()`:\n' +
523524
`--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; ${ArrayPrototypeJoin(
524525
ArrayPrototypeMap(userLoaderPaths, (loader) => `register(${JSONStringify(encodeURI(loader))}, pathToFileURL("./"))`),
525-
"; ",
526+
'; ',
526527
)};'`,
527528
'ExperimentalWarning',
528529
);

test/es-module/test-esm-experimental-warnings.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('ESM: warn for obsolete hooks provided', { concurrency: true }, () => {
3535
) {
3636
it(`should print for ${experiment.toString().replaceAll('/', '')}`, async () => {
3737
const { code, signal, stderr } = await spawnPromisified(execPath, [
38-
arg,
38+
...args,
3939
'--input-type=module',
4040
'--eval',
4141
`import ${JSON.stringify(fileURL('es-module-loaders', 'module-named-exports.mjs'))}`,

0 commit comments

Comments
 (0)