| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
This is a serious breaking change |
Sorry, something went wrong.
|
ah, yes, good point. The status change should be ok, but the options.fd change is not. |
Sorry, something went wrong.
Second thoughts... needs some tweaking to avoid the breaking change
|
Sorry to ask this, but can someone explain what exactly is the breakdown? It seems that I something misunderstood :( What the breaking case? |
Sorry, something went wrong.
There was a problem hiding this comment.
If I'm following the code correctly, this could conceivably be a breaking change for some. Since options.fd can be provided by the end user, it may be a string. Before this change, passing in '1' would have the same effect as 1. But now it won't. It only affects whether stdout and stderr are blocking or not on Windows. ¯\(ツ)/¯ @nodejs/platform-windows
Sorry, something went wrong.
There was a problem hiding this comment.
Ah, got it. Thank you!
Hmm, and what are workarounds? ParseInt'ing? (looks like hack :( ) Leave it as is? (options.fd can be === true, thats not okay?)
Sorry, something went wrong.
There was a problem hiding this comment.
Well, you could just leave ==. :-D
options.fd = +options.fd should make it a number too. There are also bit-shifting things I think that might be more efficient.
But ultimately, I'm not sure this needs to be changed at all.
Sorry, something went wrong.
|
Reverted options.fd-related corrections. Added comment before if-statements for explaining these two non-strict comparisons with link to this PR. semver-major label now can be removed. Thanks to @vkurchatkin for pointing this out. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with a nit.
Sorry, something went wrong.
There was a problem hiding this comment.
Instead of saying this and linking to a GitHub issue, could you just explain the legacy reasons.
Sorry, something went wrong.
* Change === to == in one place * Add explanation about another non-strict if-statement
|
Expanded commit message; made comment on options.fd more better. |
Sorry, something went wrong.
Sorry, something went wrong.
* Change === to == in one place * Add explanation about another non-strict if-statement PR-URL: #11513 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* Change === to == in one place * Add explanation about another non-strict if-statement PR-URL: nodejs#11513 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* Change === to == in one place * Add explanation about another non-strict if-statement PR-URL: #11513 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* Change === to == in one place * Add explanation about another non-strict if-statement PR-URL: #11513 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* Change === to == in one place * Add explanation about another non-strict if-statement PR-URL: #11513 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* Change === to == in one place * Add explanation about another non-strict if-statement PR-URL: #11513 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
net