« Bugzilla Issues Index
#4006 — FunctionDeclaration NeedsSuperBinding makes no sense in light of new early errors in ES6 draft rev33
- bug_id:
4006
- creation_ts:
2015-02-18 15:13:00 -0800
- short_desc:
FunctionDeclaration NeedsSuperBinding makes no sense in light of new early errors in ES6 draft rev33
- delta_ts:
2015-02-18 15:32:53 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 33: February 12, 2015 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
DUPLICATE
- dup_id:
3963
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Eric Faust
- assigned_to:
Allen Wirfs-Brock
- cc:
["andrebargull", "jorendorff"]
- commentid:
12936
- comment_count:
0
- who:
Eric Faust
- bug_when:
2015-02-18 15:13:10 -0800
Rev 33 added new language to 14.1.2:
It is a Syntax Error if FormalParameters Contains SuperProperty is true.
It is a Syntax Error if FunctionBody Contains SupeProperty is true.
Presumably, this is because the semantics of super make little sense outside methods, which makes sense.
However, other things that handle FunctionDeclarations and FunctionExpressions do not reflect this change. For example, 14.1.17 still contains checks for SuperProperty. It seems to me that this can never happen because of the early errors above, and should simply return false.
Therefore, also, 14.1.22 and 14.1.23 need never consult NeedsSuperBinding when giving evaluation rules for these productions.
- commentid:
12939
- comment_count:
1
- who:
André Bargull
- bug_when:
2015-02-18 15:18:13 -0800
This should be fixed in rev34 (bug 3963).
- commentid:
12941
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2015-02-18 15:32:53 -0800
*** This bug has been marked as a duplicate of bug 3963 ***