archives

« Bugzilla Issues Index

#3541 — 21.1.3.17 String.prototype.split: Handle `undefined` separator


21.1.3.17 String.prototype.split ( separator, limit )

Step 3: Too many browser tests broke when I implemented split as defined in rev30, step 3 needs at least to check for `undefined` separator. I don't know if testing for `null` is also required. And I don't know if the other strings methods (match, search, replace) are also affected.


fixed in Rev31 editor's draft

added a not undefined guard.

I don't think we need to worry about undefined, as this seems to be all about missing arguments.


In Rev31