Skip to content

Commit

Permalink
fixup! url: improve invalid url performance
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 18, 2023
1 parent 79415ed commit 147dd75
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1370,11 +1370,7 @@ E('ERR_INVALID_SYNC_FORK_INPUT',
E('ERR_INVALID_THIS', 'Value of "this" must be of type %s', TypeError);
E('ERR_INVALID_TUPLE', '%s must be an iterable %s tuple', TypeError);
E('ERR_INVALID_URI', 'URI malformed', URIError);
E('ERR_INVALID_URL', function() {
// Don't include URL in message.
// (See https://github.com/nodejs/node/pull/38614)
return 'Invalid URL';
}, TypeError);
E('ERR_INVALID_URL', 'Invalid URL', TypeError);
E('ERR_INVALID_URL_SCHEME',
(expected) => {
if (typeof expected === 'string')
Expand Down

0 comments on commit 147dd75

Please sign in to comment.