-
Notifications
You must be signed in to change notification settings - Fork 181
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
String.prototype.repeat has no limits #697
Comments
Thank you for the report. I am able to reproduce the mentioned exception:
It is expected that
Of course, the we should not throw |
Enviroment
os: WSL2 Ubuntu 22.04 LTS (Windows 11)
GraalJS Version: 22.3.0
VM: GraalVM CE 22.3.0
Bug reimplementation
excuting this script
expected result
RangeError: Invalid string length
actual result
org.graalvm.polyglot.PolyglotException: java.lang.NegativeArraySizeException: -1294967296
The text was updated successfully, but these errors were encountered: