Skip to content
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

Uncaught RangeError: Invalid string length #156

Open
wang-yikai opened this issue Nov 2, 2023 · 0 comments
Open

Uncaught RangeError: Invalid string length #156

wang-yikai opened this issue Nov 2, 2023 · 0 comments

Comments

@wang-yikai
Copy link

The following line causes the string to become very large if there are a lot of tokens:

str += flattenToken(value);

Screenshot 2023-11-01 at 4 21 56 PM

If the string becomes too long, it would exceed the capacity of the runtime system and raise an Uncaught RangeError: Invalid string length error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant