« Bugzilla Issues Index
#2470 — 7.1.1 ToPrimitive, 7.3.17 CreateFromConstructor: Use GetMethod() instead of Get()?
- bug_id:
2470
- creation_ts:
2014-01-28 06:55:00 -0800
- short_desc:
7.1.1 ToPrimitive, 7.3.17 CreateFromConstructor: Use GetMethod() instead of Get()?
- delta_ts:
2014-04-06 11:31:23 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 22: January 20, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- commentid:
7135
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-01-28 06:55:07 -0800
7.1.1 ToPrimitive and 7.3.17 CreateFromConstructor could use GetMethod() instead of Get() to remove the extra `IsCallable()` step.
For example in 7.3.17, steps 1-4:
1. Let creator be Get(F, @@create).
2. ReturnIfAbrupt(creator).
3. If creator is undefined, then return undefined.
4. If IsCallable(creator) is false, then throw a TypeError exception.
5. Let obj be the result ...
can be replaced with:
1. Let creator be GetMethod(F, @@create).
2. ReturnIfAbrupt(creator).
3. If creator is undefined, then return undefined.
4. Let obj be the result ...
- commentid:
7311
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-02-14 16:08:34 -0800
fixed in rev23 editor's draft
- commentid:
7600
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-06 11:31:23 -0700
fixed in rev23 draft