| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
ERR_ASSERTION is the wrong code to use here. That should only be used with the assert module. I recommend creating a new code specific to this condition... perhaps ERR_STREAM_HAS_STRINGDECODER
Sorry, something went wrong.
There was a problem hiding this comment.
@jasnell , I followed your suggestions and made those changes.
In this process, I made few mistakes but I guess I recovered everything, please have a look.
Thanks.
Sorry, something went wrong.
There was a problem hiding this comment.
Just move the message to the internal/errors.js file where the code is declared, then simplify this to just:
self.emit('error', new errors.Error('ERR_STREAM_HAS_STRINGDECODER'));
Sorry, something went wrong.
|
Unfortunately this needs a rebase. |
Sorry, something went wrong.
|
Done the rebase and resolved the conflicts. Please review it. Thanks |
Sorry, something went wrong.
Sorry, something went wrong.
|
Landed in d291338, thank you for your contribution! 🎉 |
Sorry, something went wrong.
|
Labelled this semver-major as I think it should have been (not that there’s anything wrong with the patch), if I’m wrong feel free to remove the label. |
Sorry, something went wrong.
|
@addaleax The error message did not change, why would this be semver-major? |
Sorry, something went wrong.
|
@tniessen The error message changed from Error: Stream has StringDecoder to Error [ERR_STREAM_HAS_STRINGDECODER]: Stream has StringDecoder |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Refs: #11273
@jasnell, pinging you for mentoring as this is my first PR to this project, thank you!
Checklist
Affected core subsystem(s)
_stream_wrap.js