Skip to content

Commit 147dd75

Browse files
committed
fixup! url: improve invalid url performance
1 parent 79415ed commit 147dd75

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/internal/errors.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1370,11 +1370,7 @@ E('ERR_INVALID_SYNC_FORK_INPUT',
13701370
E('ERR_INVALID_THIS', 'Value of "this" must be of type %s', TypeError);
13711371
E('ERR_INVALID_TUPLE', '%s must be an iterable %s tuple', TypeError);
13721372
E('ERR_INVALID_URI', 'URI malformed', URIError);
1373-
E('ERR_INVALID_URL', function() {
1374-
// Don't include URL in message.
1375-
// (See https://github.com/nodejs/node/pull/38614)
1376-
return 'Invalid URL';
1377-
}, TypeError);
1373+
E('ERR_INVALID_URL', 'Invalid URL', TypeError);
13781374
E('ERR_INVALID_URL_SCHEME',
13791375
(expected) => {
13801376
if (typeof expected === 'string')

0 commit comments

Comments
 (0)