-
Notifications
You must be signed in to change notification settings - Fork 30k
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
util: fix inspection of errors with tampered stack property for node v10 #33948
Comments
/cc @nodejs/release, maybe we could backport #30576 to next v10 LTS release. |
#30576 doesn't land cleanly on v10.x-staging so would need a manual backport. |
I am closing this as it's not a security issue and Node.js 10 is soon not maintained anymore. @analog-nico I hope you were able to move to Node.js 12 or above by now! |
@BridgeAR Sounds good! I made sure to not run into this issue in my code and upgrading node makes sense anyways. Thanks! |
This is an error report for node v10 which has already been fixed for node v12 and may make sense to fix in node v10 as well. The fix in node v12 could have been made via pull request #30576 .
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Every time in node v10.21.0. Never in node v12.16.1.
What is the expected behavior?
The
err2.stack
array is inspected as an array would usually be inspected.What do you see instead?
util.inspect({ err2 })
throws this error: TypeError: formatError(...).replace is not a functionAdditional information
Feel free to close if such a fix is not within the scope of the LTS maintenance phase in which node v10 is currently in.
The text was updated successfully, but these errors were encountered: