« Bugzilla Issues Index
#2778 — 21.2.5.7 RegExp.prototype.replace: Step 3 is invalid, nCaptures needs to be determined dynamically
- bug_id:
2778
- creation_ts:
2014-05-01 08:22:00 -0700
- short_desc:
21.2.5.7 RegExp.prototype.replace: Step 3 is invalid, nCaptures needs to be determined dynamically
- delta_ts:
2014-07-19 18:23:41 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 24: April 27, 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:
8072
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-05-01 08:22:04 -0700
21.2.5.7 RegExp.prototype.replace ( string, replaceValue ), step 3.
Remove step 3 and instead add three new step before 17.a to determine the number of captured groups.
> 17.a Let nCaptures be ToLength(Get(result, "length")).
> 17.b ReturnIfAbrupt(nCaptures).
> 17.c Let nCaptures be max(nCaptures - 1, 0).
- commentid:
9209
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-07-15 15:57:37 -0700
fixed in rev26 editor's draft
- commentid:
9378
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-07-19 18:23:41 -0700
fixed in rev26