« Bugzilla Issues Index
#3735 — 14.5.14 Does not handle missing constructor correctly
- bug_id:
3735
- creation_ts:
2015-02-03 07:10:00 -0800
- short_desc:
14.5.14 Does not handle missing constructor correctly
- delta_ts:
2015-07-10 08:34:18 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 32: February 2, 2015 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- see_also:
https://bugs.ecmascript.org/show_bug.cgi?id=3595
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Erik Arvidsson
- assigned_to:
Allen Wirfs-Brock
- cc:
erik.arvidsson
- commentid:
12067
- comment_count:
0
- who:
Erik Arvidsson
- bug_when:
2015-02-03 07:10:24 -0800
Given:
class C {
m() {}
}
Step 8 says:
8. If ClassBodyopt is present, let constructor be ConstructorMethod of ClassBody.
This leads to an empty _constructor_.
The old spec draft handled this correctly.
8. If ClassBodyopt is not present, let constructor be empty.
9. Else, let constructor be ConstructorMethod of ClassBody.
10. If constructor is empty, then
- commentid:
12092
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-04 09:08:51 -0800
fixed in rev33 editor's draft
- commentid:
12403
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-12 12:17:36 -0800
fixed in rev33