« Bugzilla Issues Index
#3304 — name property of anonymous class expression?
- bug_id:
3304
- creation_ts:
2014-11-03 14:11:00 -0800
- short_desc:
name property of anonymous class expression?
- delta_ts:
2015-07-10 08:34:23 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 28: October 14, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
INVALID
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Erik Arvidsson
- assigned_to:
Allen Wirfs-Brock
- cc:
erik.arvidsson
- commentid:
10547
- comment_count:
0
- who:
Erik Arvidsson
- bug_when:
2014-11-03 14:11:43 -0800
Based on my interpretation it seems like there will not be a name property on C in the following example.
var C = class {};
assertFalse(C.hasOwnProperty('name'));
Is this correc. Is this desired?
- commentid:
10548
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-11-03 17:38:14 -0800
How did you reach that conclusion?
It should be set by the evaluation action for
VariableDeclaration : BindingIdentifier Initializer
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-variable-statement-runtime-semantics-evaluation step 4.
Do you see something that is cause the name property creation step to be skipped?
- commentid:
10551
- comment_count:
2
- who:
Erik Arvidsson
- bug_when:
2014-11-04 06:55:56 -0800
Thanks. It is clear now.
IsAnonymousFunctionDefinition was the magic word I didn't find