« Bugzilla Issues Index
#3149 — 21.2.5.10 RegExp.prototype.split: update the NOTE 1 at the end of the section
- bug_id:
3149
- creation_ts:
2014-08-25 05:30:00 -0700
- short_desc:
21.2.5.10 RegExp.prototype.split: update the NOTE 1 at the end of the section
- delta_ts:
2014-10-14 15:17:52 -0700
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 26: July 18, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- see_also:
https://bugs.ecmascript.org/show_bug.cgi?id=2662
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Claude Pache
- assigned_to:
Allen Wirfs-Brock
- commentid:
9860
- comment_count:
0
- who:
Claude Pache
- bug_when:
2014-08-25 05:30:32 -0700
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.
- commentid:
9862
- comment_count:
1
- who:
Claude Pache
- bug_when:
2014-08-25 06:04:54 -0700
(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.
- commentid:
10017
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-08-29 13:20:11 -0700
fixed in rev28 editor's draft
added mention of the "sticky" property to the note.
- commentid:
10431
- comment_count:
3
- who:
Allen Wirfs-Brock
- bug_when:
2014-10-14 15:17:52 -0700
fixed in rev28