url: runtime deprecate url.parse #62451
Triggered via pull request
September 19, 2024 19:41
Status
Failure
Total duration
1h 28m 1s
Artifacts
–
Annotations
2 errors and 1 notice
test-linux:
test/parallel/test-url-parse-invalid-input.js#L1
--- stderr ---
(node:182332) [DEP0169] DeprecationWarning: url.parse() is deprecated and the behavior is prone to errors that have security implications. Use new URL() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
node:assert:90
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'url.parse() is deprecated and the behavior is prone to errors that have security implications. Use new URL() instead.'
- 'The URL https://evil.com:.example.com is invalid. Future versions of Node.js will throw an error.'
at Object.<anonymous> (/home/runner/work/node/node/test/common/index.js:698:14)
at Object.DeprecationWarning (/home/runner/work/node/node/test/common/index.js:493:15)
at process.<anonymous> (/home/runner/work/node/node/test/common/index.js:722:33)
at process.emit (node:events:519:35)
at doEmitWarning (node:internal/process/warning:94:11)
at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'url.parse() is deprecated and the behavior is prone to errors that have security implications. Use new URL() instead.',
expected: 'The URL https://evil.com:.example.com is invalid. Future versions of Node.js will throw an error.',
operator: 'strictEqual'
}
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/parallel/test-url-parse-invalid-input.js
|
test-linux
Process completed with exit code 2.
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|