| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { | ||
| if (typeof url !== 'string') { | ||
| throw new TypeError('Parameter "url" must be a string, not ' + typeof url); | ||
| throw new errors.TypeError('ERR_INVALID_ARG_TYPE','url','String',url); |
There was a problem hiding this comment.
Linter should complain here, there needs to be a space following the comma. Can you run make lint to check this?
Sorry, something went wrong.
| } else if (typeof obj !== 'object' || obj === null) { | ||
| throw new TypeError('Parameter "urlObj" must be an object, not ' + | ||
| (obj === null ? 'null' : typeof obj)); | ||
| throw new errors.TypeError('ERR_INVALID_ARG_TYPE','obj','Object',obj); |
There was a problem hiding this comment.
Ditto.
Sorry, something went wrong.
|
@bougarfaoui Thanks so much for putting this together. Sorry that it is dragging out for so long due to being a semver-major change. Could you rebase and also squash your commits (I think all the changes should be one commit, right?). Thanks! |
Sorry, something went wrong.
There was a problem hiding this comment.
Are there any tests that cover these changes?
Sorry, something went wrong.
|
I'm closing this because it's been inactive for quite a while. Feel free to reopen or ping a collaborator to get it reopened if needed. |
Sorry, something went wrong.
|
I'll follow up |
Sorry, something went wrong.
|
The errors in url module have been migrated in #13963. |
Sorry, something went wrong.
|
Done |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Migrate url.js to use internal/errors.js
Refs: #11273
cc @jasnell .
Checklist
Affected core subsystem(s)
errors, url