| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Probably add a string and a symbol.
Sorry, something went wrong.
There was a problem hiding this comment.
@joyeecheung Since a string is a valid input, so i just added the case of symbol :)
Sorry, something went wrong.
|
This is probably more a bug fix (semver-patch) than a semver-major change since the error was not there to begin with. I can't imagine many people would be checking the error message for 'undefined'. That's my 2 cents anyway. |
Sorry, something went wrong.
|
@mscdex I'm open to both. Added the label just to be safe. |
Sorry, something went wrong.
There was a problem hiding this comment.
+1 to considering this semver-patch
Sorry, something went wrong.
There was a problem hiding this comment.
Can you align the opening ` with the opening '?
Sorry, something went wrong.
There was a problem hiding this comment.
@addaleax OK, done 👍
Sorry, something went wrong.
There was a problem hiding this comment.
Nit: throwsObjsAndReportTypes can be used directly instead of calling entries().
Sorry, something went wrong.
|
I'm not as certain. I think it's better to treat all of these in a consistent way. I'd argue semver-major but let's see what the rest of @nodejs/ctc has to say |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, I'd be tempted to be conservative and treat as semver major unless we know it is causing pain to users in current versions.
Sorry, something went wrong.
Sorry, something went wrong.
|
I'm going to land this as a semver-major. We can back that back down after the fact if necessary. |
Sorry, something went wrong.
PR-URL: #11162 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
PR-URL: nodejs#11162 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
| Back | FazBrowse Home | New Git URL |
The previous code: 'Parameter "urlObj" must be an object, not ' + obj === null ? 'null' : typeof obj actually equals ('Parameter "urlObj" must be an object, not ' + obj) === null ? 'null' : typeof obj and its former test did not check the error message.
So the eventual error message we got is very weird, like: TypeError: undefined.
Checklist
Affected core subsystem(s)
url