-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Huge amount of comments causes RangeError: Maximum call stack size exceeded #993
Comments
For my sanity: did you encounter this in a real-world scenario? This is caused by recursive calls from |
It happened in a real world case where large chunk of json data was commented out. |
If you're running it manually, you can work around by doing something like Fixing this completely requires rewriting chunks of the parser, which may take some time. |
I'm also encountering this error with a file that is 135,594 lines long (a nasty, huge bundle of our 3rd party dependencies). |
See PR #1045 |
A 10 000 line comment at http://lisperator.net/uglifyjs/#demo causes RangeError: Maximum call stack size exceeded -error.
Attached is the input that should reproduce this error. The file has simply
// Your code goes here
-line 10 000 times.huge-amount-of-comments-rangeerror-example-input.js.txt
The text was updated successfully, but these errors were encountered: