« Bugzilla Issues Index
#2779 — 21.2.5.7 RegExp.prototype.replace: Don't call ToString() if captured group is undefined
- bug_id:
2779
- creation_ts:
2014-05-01 08:29:00 -0700
- short_desc:
21.2.5.7 RegExp.prototype.replace: Don't call ToString() if captured group is undefined
- delta_ts:
2014-06-16 16:24:02 -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:
8073
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-05-01 08:29:22 -0700
21.2.5.7 RegExp.prototype.replace ( string, replaceValue ), step 17.h.i:
Step 17.h.i needs to preserve `undefined` as the captured group value.
Change to:
> Let capN be the result of Get(result, ToString(n)).
> If Type(capN) is not Undefined, then let capN be ToString(capN).
- commentid:
8538
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-05-17 16:38:23 -0700
fixed in rev25 editor's draft
- commentid:
9024
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-06-16 16:24:02 -0700
fixed in rev25 editor's draft