archives

« Bugzilla Issues Index

#1907 — 21.2.5.10 RegExp.prototype.split: unspecified limit should act like 2^53-1, not of 2^32-1


Step 11 of the algorithm for RegExp.prototype.split says:

11. If limit is undefined, let lim = 2^32–1; else let lim = ToLength(limit)

An undefined `limit` argument should act like +∞, so that lim = ToLength(+∞) or 2^53–1.


fixed in rev19 editor's draft


fixed in rev19