We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
22.15.0
Darwin Sams-MacBook-Pro-2.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 arm64
No response
Since this PR #56573 the following code causes a Maximum call stack size exceeded error
Maximum call stack size exceeded
Error.prepareStackTrace = (error) => error; console.log(new Error('foo').stack); //=> 💥 Maximum call stack size exceeded
It basically happens if error.stack points to the error itself
error.stack
const err = new Error('foo'); err.stack = err; console.log(err);
No
Before that PR, it just printed the error
Error.prepareStackTrace = (error) => error; console.log(new Error('unicorn').stack); //=> [Error foo]
const err = new Error('foo'); err.stack = err; console.log(err); //=> [Error foo]
💥 Maximum call stack size exceeded
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
22.15.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Since this PR #56573 the following code causes a
Maximum call stack size exceeded
errorIt basically happens if
error.stack
points to the error itselfHow often does it reproduce? Is there a required condition?
No
What is the expected behavior? Why is that the expected behavior?
Before that PR, it just printed the error
What do you see instead?
💥 Maximum call stack size exceeded
Additional information
No response
The text was updated successfully, but these errors were encountered: