« Bugzilla Issues Index
#2335 — 19.2.1.1, 25.2.1.1: Add HasOwnProperty() check for "name"
- bug_id:
2335
- creation_ts:
2013-11-21 04:16:00 -0800
- short_desc:
19.2.1.1, 25.2.1.1: Add HasOwnProperty() check for "name"
- delta_ts:
2014-04-06 11:30:52 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 21: November 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:
6858
- comment_count:
0
- who:
André Bargull
- bug_when:
2013-11-21 04:16:09 -0800
19.2.1.1, step 22 and 25.2.1.1, step 22:
Change from:
> 22. SetFunctionName(F, "anonymous").
To:
> 22. Let hasNameProperty be the result of HasOwnProperty(F, "name").
> 23. ReturnIfAbrupt(hasNameProperty).
> 24. If hasNameProperty is false, then
> a. SetFunctionName(F, "anonymous").
(Or just move the complete check to the callee and remove the checks from the various call sites?)
Test case:
class Fn extends Function {
constructor(...args){
Object.mixin(this, {name: "awd"});
super(...args);
}
}
new Fn("");
- commentid:
7354
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-02-17 14:54:08 -0800
fixed in rev23 editor's draft
- commentid:
7576
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-06 11:30:52 -0700
fixed in rev23 draft