lib, url: allow options
for URL parsing in fileURLtoPath
and pathToFileURL
#46134
Annotations
3 errors
Test:
test/parallel/test-url-fileurltopath.js#L147
--- stderr ---
node:assert:126
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ '/C:/foo'
- 'C:\\foo'
at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-url-fileurltopath.js:147:10)
at Module._compile (node:internal/modules/cjs/loader:1476:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1555:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:191:14)
at node:internal/main/run_main_module:28:49 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '/C:/foo',
expected: 'C:\\foo',
operator: 'strictEqual'
}
Node.js v22.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/parallel/test-url-fileurltopath.js
|
Test:
test/parallel/test-url-pathtofileurl.js#L157
--- stderr ---
node:assert:126
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'file:///home/runner/work/node/node/C:%5Cfoo'
- 'file:///C:/foo'
^
at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-url-pathtofileurl.js:157:10)
at Module._compile (node:internal/modules/cjs/loader:1476:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1555:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:191:14)
at node:internal/main/run_main_module:28:49 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'file:///home/runner/work/node/node/C:%5Cfoo',
expected: 'file:///C:/foo',
operator: 'strictEqual'
}
Node.js v22.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/parallel/test-url-pathtofileurl.js
|
Test
Process completed with exit code 2.
|
Loading