archives

« Bugzilla Issues Index

#628 — String.prototype.repeat uses ToInteger without check for ∞


As the summary says, it's possible to create an infinitely repeating string. Should probably throw RangeError along with ≤0.


corrected in editor's draft


fixed in rev10, Sept. 27 2012 draft