You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
String.prototype.repeat throws RangeError for a count the spec allows #1735
String.prototype.repeat throws a RangeError only when n < 0 or n = +∞. Here n is 2^53 - 1, so neither test applies.
The receiver is the empty String, so the final step produces n copies of an empty String, which is the empty String. No allocation of that size is required.
JavaScriptCore, SpiderMonkey, GraalJS and V8 all return "".
Activity