-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors, url: port url errors to internal/errors #13963
Conversation
CI: https://ci.nodejs.org/job/node-test-pull-request/8857/ Don't worry if node-test-commit-linux doesn't pass. The CI bot has had some trouble recently. |
code: 'ERR_INVALID_ARG_TYPE', | ||
type: TypeError, | ||
message: 'The "urlObj" argument must be of type object. ' + | ||
`Received type ${type}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: line up the strings here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
}); | ||
|
||
assert.throws(() => { url.parse('http://%E0%A4%A@fail'); }, | ||
/^URIError: URI malformed$/); | ||
assert.throws(() => { url.parse('http://%E0%A4%A@fail'); }, /^URIError: URI malformed$/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
long line here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I fix it.
e0d434d
to
9e4763b
Compare
9e4763b
to
b630e47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR-URL: nodejs#13963 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in 473f0ef |
Extra sanity run on |
There is already a PR (#11360) for this migration, but it seems to be out-of-date and deprecated. So I make a new one.
Ref: #11273
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
url, test