You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/parallel/test-url-parse-invalid-input.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -90,12 +90,12 @@ if (common.hasIntl) {
90
90
});
91
91
92
92
// Warning should only happen once per process.
93
-
constexpectedWarning=[
94
-
`The URL ${badURLs[0]} is invalid. Future versions of Node.js will throw an error.`,
95
-
'DEP0170',
96
-
];
97
93
common.expectWarning({
98
-
DeprecationWarning: expectedWarning,
94
+
DeprecationWarning: {
95
+
// eslint-disable-next-line @stylistic/js/max-len
96
+
DEP0169: '`url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.',
97
+
DEP0170: `The URL ${badURLs[0]} is invalid. Future versions of Node.js will throw an error.`,
0 commit comments