| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| const process = require('process'); | ||
| const assert = require('assert'); | ||
|
|
||
| assert.throws( |
There was a problem hiding this comment.
Use common.expectsError instead?
Sorry, something went wrong.
| 'use strict'; | ||
|
|
||
| require('../common'); | ||
| const process = require('process'); |
There was a problem hiding this comment.
No need to require process
Sorry, something went wrong.
|
I don't understand why the test is failing, from this ci job link. |
Sorry, something went wrong.
The test was recently modified by #18986 but the CI of that PR also failed the test on a different platform. I'm fairly sure it's unrelated the to the changes in this PR. |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
PR with the fix for the broken test: #19093 |
Sorry, something went wrong.
|
Fwiw, I don’t think changes to the messages of errors that already have had errno-based error codes should have to be semver-major… @nodejs/tsc thoughts? |
Sorry, something went wrong.
I think @ljharb raised somewhere that we should still treat them as breaking changes until we have assigned .code to all errors thrown from Node.js core, the rationale is if all the errors don't have .code, then the user can not start to fully rely on them. |
Sorry, something went wrong.
|
That being said, I think we can make an exception for libuv errors like this one because they are pretty old so should be well-recognized in the user land. Not so much about the ERR_* errors though. |
Sorry, something went wrong.
|
If the error previously had a code, then it’s less risky to treat a message change as non-major, but the safest bet is waiting until there’s a version of node with zero codeless errors before doing so. |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: #19088 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
PR-URL: nodejs#19088 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Partly fixes #12351
Affected core subsystem(s)
process