-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.errno
field of errors from child_process.execSync
is in string form instead of numeric.
#12819
Comments
Possibly related to #6665 |
cc @bnoordhuis, @cjihrig |
This comes from the use of |
FWIW, this will be changing in an upcoming semver-major as part of the conversion over to internal/errors |
great. is there milestone or related issue/PR for that? |
@daurnimator Tracking issue for the ongoing internal/errors work is in #11273 (The issue in the OP is still present in v8.0.0..) |
#11273 is now closed, but the issue remains. (tested with 9.5.0) |
Changing the type is a semver-major change so node 10 would be soonest you'd see that change, and assuming it doesn't cause breakage in the ecosystem. |
I left a few TODOs in Line 432 in 80ac941
Line 467 in 80ac941
Line 503 in 80ac941
I would not oppose to try to have them fixed before v10 and see if there are any serious breakage...@jasnell what do you think? |
Could this be added to the v10 milestone? https://github.com/nodejs/node/milestone/26 |
Issue remains in |
@daurnimator - this is fixed through #28140 and is available is v13.0.0. Can you pls check at your end and revert?
|
@gireeshpunathil thanks for letting me know! |
Linux daurn-m73 4.10.11-1-ARCH #1 SMP PREEMPT Tue Apr 18 08:39:42 CEST 2017 x86_64 GNU/Linux
The
.errno
field of errors fromchild_process.execSync
is in string form instead of numeric.In this example I expect the numeric value
-2
(as it is (correctly) is for other operations such asopen
:try{require("fs").openSync("doesnt_exist", "r")}catch(e){console.log(e.errno)}
).The text was updated successfully, but these errors were encountered: