« Bugzilla Issues Index
#3468 — 21.2.5.11 RegExp.prototype [ @@split ]: Inconsistent lastIndex conversion
- bug_id:
3468
- creation_ts:
2014-12-17 13:01:00 -0800
- short_desc:
21.2.5.11 RegExp.prototype [ @@split ]: Inconsistent lastIndex conversion
- delta_ts:
2014-12-23 20:23:32 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 29: December 06, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- commentid:
11071
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-12-17 13:01:29 -0800
21.2.5.11 RegExp.prototype [ @@split ] ( string, limit )
Step 23.f.i uses ToLength to convert the "lastIndex" property, other algorithms use ToInteger instead.
- commentid:
11083
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-12-17 17:48:44 -0800
fixed in rev30 editor's draft
ToLength looks like the better choice for almost all of places in these algorithms that retrieve 'lastIndex'. So I changed all of them where it seems appropriate.
It might be even better to throw if the 'lastIndex' value is outside of toLength range, but I didn't make that change.
- commentid:
11207
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-12-23 20:23:32 -0800
fixed in rev30