Allow nested data: imports with --experimental-network-imports #59247
Annotations
10 errors and 1 notice
test-linux:
test/es-module/test-cjs-prototype-pollution.js#L12
--- stderr ---
node:internal/modules/esm/resolve:1071
if (protocol === 'data:' && parentProtocol !== 'file:' && parentProtocol !== 'data:') {
^
ReferenceError: parentProtocol is not defined
at defaultResolve (node:internal/modules/esm/resolve:1071:32)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:484:36)
at TracingChannel.tracePromise (node:diagnostics_channel:337:14)
at ModuleLoader.import (node:internal/modules/esm/loader:483:21)
at defaultImportModuleDynamicallyForScript (node:internal/modules/esm/utils:227:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:249:12)
at Object.<anonymous> (/home/runner/work/node/node/test/es-module/test-cjs-prototype-pollution.js:12:1)
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-cjs-prototype-pollution.js
|
test-linux:
test/es-module/test-esm-assertionless-json-import.js#L1
--- stderr ---
(node:129008) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("./test/fixtures/es-module-loaders/assertionless-json-import.mjs", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:129008) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
ReferenceError [Error]: parentProtocol is not defined
at defaultResolve (node:internal/modules/esm/resolve:1071:32)
at nextResolve (node:internal/modules/esm/hooks:746:28)
at resolve (file:///home/runner/work/node/node/test/fixtures/es-module-loaders/assertionless-json-import.mjs:12:24)
at nextResolve (node:internal/modules/esm/hooks:746:28)
at Hooks.resolve (node:internal/modules/esm/hooks:238:30)
at MessagePort.handleMessage (node:internal/modules/esm/worker:199:24)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:816:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
Node.js v23.0.0-pre
Command: out/Release/node --experimental-loader ./test/fixtures/es-module-loaders/assertionless-json-import.mjs --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-assertionless-json-import.js
|
test-linux:
test/es-module/test-esm-data-urls.js#L1
--- stderr ---
node:internal/modules/esm/resolve:1071
if (protocol === 'data:' && parentProtocol !== 'file:' && parentProtocol !== 'data:') {
^
ReferenceError: parentProtocol is not defined
at defaultResolve (node:internal/modules/esm/resolve:1071:32)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:484:36)
at TracingChannel.tracePromise (node:diagnostics_channel:337:14)
at ModuleLoader.import (node:internal/modules/esm/loader:483:21)
at defaultImportModuleDynamicallyForScript (node:internal/modules/esm/utils:227:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:249:12)
at /home/runner/work/node/node/test/es-module/test-esm-data-urls.js:16:16
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-data-urls.js
|
test-linux:
test/es-module/test-esm-import-assertion-warning.mjs#L1
--- stderr ---
node:internal/modules/run_main:115
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /Use `importAttributes` instead of `importAssertions`/. Input:
'\n' +
'node:internal/modules/run_main:115\n' +
' triggerUncaughtException(\n' +
' ^\n' +
'ReferenceError [Error]: parentProtocol is not defined\n' +
' at defaultResolve (node:internal/modules/esm/resolve:1071:32)\n' +
' at nextResolve (node:internal/modules/esm/hooks:746:28)\n' +
' at Hooks.resolve (node:internal/modules/esm/hooks:238:30)\n' +
' at ModuleLoader.resolve (node:internal/modules/esm/loader:519:35)\n' +
' at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)\n' +
' at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:484:36)\n' +
' at TracingChannel.tracePromise (node:diagnostics_channel:337:14)\n' +
' at ModuleLoader.import (node:internal/modules/esm/loader:483:21)\n' +
' at Hooks.register (node:internal/modules/esm/hooks:150:53)\n' +
' at MessagePort.handleMessage (node:internal/modules/esm/worker:199:24)\n' +
'\n' +
'Node.js v23.0.0-pre\n'
at file:///home/runner/work/node/node/test/es-module/test-esm-import-assertion-warning.mjs:34:10
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at async file:///home/runner/work/node/node/test/es-module/test-esm-import-assertion-warning.mjs:5:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '\n' +
'node:internal/modules/run_main:115\n' +
' triggerUncaughtException(\n' +
' ^\n' +
'ReferenceError [Error]: parentProtocol is not defined\n' +
' at defaultResolve (node:internal/modules/esm/resolve:1071:32)\n' +
' at nextResolve (node:internal/modules/esm/hooks:746:28)\n' +
' at Hooks.resolve (node:internal/modules/esm/hooks:238:30)\n' +
' at ModuleLoader.resolve (node:internal/modules/esm/loader:519:35)\n' +
' at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)\n' +
' at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:484:36)\n' +
' at TracingChannel.tracePromise (node:diagnostics_channel:337:14)\n' +
' at ModuleLoader.import (node:internal/modules/esm/loader:483:21)\n' +
' at Hooks.register (node:internal/modules/esm/hooks:150:53)\n' +
' at MessagePort.handleMessage (node:internal/modules/esm/worker:199:24)\n' +
'\n' +
'Node.js v23.0.0-pre\n',
expected: /Use `importAttributes` instead of `importAssertions`/,
operator: 'match'
}
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-import-assertion-warning.mjs
|
test-linux:
test/es-module/test-esm-detect-ambiguous.mjs#L177
--- stdout ---
βΆ Module syntax detection
βΆ string input
β permits ESM syntax in --eval input without requiring --input-type=module (63.595554ms)
::debug::starting to run Module syntax detection
::debug::starting to run string input
::debug::starting to run permits ESM syntax in --eval input without requiring --input-type=module
::debug::completed running permits ESM syntax in --eval input without requiring --input-type=module
β permits ESM syntax in STDIN input without requiring --input-type=module (43.893968ms)
::debug::starting to run permits ESM syntax in STDIN input without requiring --input-type=module
::debug::completed running permits ESM syntax in STDIN input without requiring --input-type=module
β should be overridden by --input-type (50.910123ms)
::debug::starting to run should be overridden by --input-type
::debug::completed running should be overridden by --input-type
β should not switch to module if code is parsable as script (32.171163ms)
::debug::starting to run should not switch to module if code is parsable as script
::debug::completed running should not switch to module if code is parsable as script
β should be overridden by --experimental-default-type (46.15002ms)
::debug::starting to run should be overridden by --experimental-default-type
::debug::completed running should be overridden by --experimental-default-type
β does not trigger detection via source code `eval()` (46.195183ms)
βΆ string input (285.102161ms)
::debug::starting to run does not trigger detection via source code `eval()`
::debug::completed running does not trigger detection via source code `eval()`
::debug::completed running string input
βΆ .js file input in a typeless package
β permits CommonJS syntax in a .js entry point (37.659247ms)
::debug::starting to run .js file input in a typeless package
::debug::starting to run permits CommonJS syntax in a .js entry point
::debug::completed running permits CommonJS syntax in a .js entry point
β permits ESM syntax in a .js entry point (62.807739ms)
::debug::starting to run permits ESM syntax in a .js entry point
::debug::completed running permits ESM syntax in a .js entry point
β permits CommonJS syntax in a .js file imported by a CommonJS entry point (50.796007ms)
::debug::starting to run permits CommonJS syntax in a .js file imported by a CommonJS entry point
::debug::completed running permits CommonJS syntax in a .js file imported by a CommonJS entry point
β permits ESM syntax in a .js file imported by a CommonJS entry point (58.921733ms)
::debug::starting to run permits ESM syntax in a .js file imported by a CommonJS entry point
::debug::completed running permits ESM syntax in a .js file imported by a CommonJS entry point
β permits CommonJS syntax in a .js file imported by an ESM entry point (65.394214ms)
::debug::starting to run permits CommonJS syntax in a .js file imported by an ESM entry point
::debug::completed running permits CommonJS syntax in a .js file imported by an ESM entry point
β permits ESM syntax in a .js file imported by an ESM entry point (60.243797ms)
βΆ .js file input in a typeless package (337.586792ms)
::debug::starting to run permits ESM syntax in a .js file imported by an ESM entry point
::debug::completed running permits ESM syntax in a .js file imported by an ESM entry point
::debug::completed running .js file input in a typeless package
βΆ extensionless file input in a typeless package
β permits CommonJS syntax in an extensionless entry point (51.469798ms)
::debug::starting to run extensionless file input in a typeless package
::debug::starting to run permits CommonJS syntax in an extensionless entry point
::debug::completed running permits CommonJS syntax in an extensionless entry point
β permits ESM syntax in an extensionless entry point (58.638863ms)
::debug::starting to run permits ESM syntax in an extensionless entry point
::debug::completed running permits ESM syntax in an extensionless entry point
β permits CommonJS syntax in an extensionless file imported by a CommonJS entry point (55.53
|
test-linux:
test/es-module/test-esm-import-attributes-errors.js#L9
--- stderr ---
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
+ Comparison {}
- Comparison {
- code: 'ERR_UNKNOWN_MODULE_FORMAT'
- }
at async test (/home/runner/work/node/node/test/es-module/test-esm-import-attributes-errors.js:9:3) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: ReferenceError: parentProtocol is not defined
at defaultResolve (node:internal/modules/esm/resolve:1071:32)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:484:36)
at TracingChannel.tracePromise (node:diagnostics_channel:337:14)
at ModuleLoader.import (node:internal/modules/esm/loader:483:21)
at defaultImportModuleDynamicallyForScript (node:internal/modules/esm/utils:227:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:249:12)
at test (/home/runner/work/node/node/test/es-module/test-esm-import-attributes-errors.js:9:3),
expected: { code: 'ERR_UNKNOWN_MODULE_FORMAT' },
operator: 'rejects'
}
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-import-attributes-errors.js
|
test-linux:
test/es-module/test-esm-import-attributes-errors.mjs#L1
--- stderr ---
node:internal/modules/run_main:115
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
+ Comparison {}
- Comparison {
- code: 'ERR_UNKNOWN_MODULE_FORMAT'
- }
at async file:///home/runner/work/node/node/test/es-module/test-esm-import-attributes-errors.mjs:7:1 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: ReferenceError: parentProtocol is not defined
at defaultResolve (node:internal/modules/esm/resolve:1071:32)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:484:36)
at TracingChannel.tracePromise (node:diagnostics_channel:337:14)
at ModuleLoader.import (node:internal/modules/esm/loader:483:21)
at defaultImportModuleDynamicallyForModule (node:internal/modules/esm/utils:214:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:253:12)
at file:///home/runner/work/node/node/test/es-module/test-esm-import-attributes-errors.mjs:7:1,
expected: { code: 'ERR_UNKNOWN_MODULE_FORMAT' },
operator: 'rejects'
}
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-import-attributes-errors.mjs
|
test-linux:
test/es-module/test-esm-import-meta.mjs#L1
--- stderr ---
node:internal/modules/esm/resolve:1071
if (protocol === 'data:' && parentProtocol !== 'file:' && parentProtocol !== 'data:') {
^
ReferenceError: parentProtocol is not defined
at defaultResolve (node:internal/modules/esm/resolve:1071:32)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at ModuleJob._link (node:internal/modules/esm/module_job:126:49)
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-import-meta.mjs
|
test-linux:
test/es-module/test-esm-import-meta-resolve.mjs#L1
--- stderr ---
node:internal/modules/esm/resolve:1071
if (protocol === 'data:' && parentProtocol !== 'file:' && parentProtocol !== 'data:') {
^
ReferenceError: parentProtocol is not defined
at defaultResolve (node:internal/modules/esm/resolve:1071:32)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:484:36)
at TracingChannel.tracePromise (node:diagnostics_channel:337:14)
at ModuleLoader.import (node:internal/modules/esm/loader:483:21)
at defaultImportModuleDynamicallyForModule (node:internal/modules/esm/utils:214:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:253:12)
at file:///home/runner/work/node/node/test/es-module/test-esm-import-meta-resolve.mjs:40:8
Node.js v23.0.0-pre
Command: out/Release/node --experimental-import-meta-resolve --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-import-meta-resolve.mjs
|
test-linux:
test/es-module/test-esm-invalid-data-urls.js#L1
--- stderr ---
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
+ message: 'parentProtocol is not defined'
- code: 'ERR_UNKNOWN_MODULE_FORMAT',
- message: 'Unknown module format: text/plain for URL data:text/plain,export default0'
}
at async /home/runner/work/node/node/test/es-module/test-esm-invalid-data-urls.js:6:3 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: ReferenceError: parentProtocol is not defined
at defaultResolve (node:internal/modules/esm/resolve:1071:32)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:484:36)
at TracingChannel.tracePromise (node:diagnostics_channel:337:14)
at ModuleLoader.import (node:internal/modules/esm/loader:483:21)
at defaultImportModuleDynamicallyForScript (node:internal/modules/esm/utils:227:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:249:12)
at /home/runner/work/node/node/test/es-module/test-esm-invalid-data-urls.js:6:16,
expected: {
code: 'ERR_UNKNOWN_MODULE_FORMAT',
message: 'Unknown module format: text/plain for URL data:text/plain,export default0'
},
operator: 'rejects'
}
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/es-module/test-esm-invalid-data-urls.js
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|