« Bugzilla Issues Index
#1432 — 15.5.4.10, 15.5.4.12: RegExpCreate expects two string-valued parameters
- bug_id:
1432
- creation_ts:
2013-04-11 13:24:00 -0700
- short_desc:
15.5.4.10, 15.5.4.12: RegExpCreate expects two string-valued parameters
- delta_ts:
2013-05-14 18:14:01 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 14: March 8, 2013 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:
3628
- comment_count:
0
- who:
André Bargull
- bug_when:
2013-04-11 13:24:59 -0700
String.prototype.match [15.5.4.10] and String.prototype.search [15.5.4.12] both call RegExpCreate with wrong argument (-types). Change algorithm steps as follows:
> 5.a If regexp is undefined, let p be the empty string; else let p be ToString(regexp).
> 5.b Let rx be the result of the abstract operation RegExpCreate (15.10.4.1) with arguments p and the empty string.
Also change step 8 of [15.5.4.10] and [15.5.4.12] to use proper variable:
> 8. Return the result of Invoke(rx, "match", args).
- commentid:
3665
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-04-19 16:28:25 -0700
fixed in rev 15 editor's draft
I centralized the regexp+flags argument coercions within RegExpInit
- commentid:
3970
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-05-14 18:14:01 -0700
resolved in rev 15, May 14, 2013 draft