archives

« Bugzilla Issues Index

#3149 — 21.2.5.10 RegExp.prototype.split: update the NOTE 1 at the end of the section


21.2.5.10 RegExp.prototype.split

The NOTE 1 at the end of that section says:

The split method ignores the value of the global property of this RegExp object.

Two things:
* It is now the "global flag" rather than the "global property".
* It should be mentioned that the sticky flag is also ignored.

That said, if we change the algorithm in order to use `exec` instead of directly the RegExp matcher (according Bug 2662), that NOTE is not guaranteed to be true for user-defined strangely-behaving subclasses of RegExp, because one couldn't force it to ignore the flags.


(In reply to Claude Pache from comment #0)
> * It is now the "global flag" rather than the "global property".

Sorry, this is still the "global property" (and the "sticky property") according to the RegExpBuiltinExec algorithm (Section 21.2.5.2.2), steps 7 and 9.


fixed in rev28 editor's draft

added mention of the "sticky" property to the note.


fixed in rev28