super() call in methods

Allen Wirfs-Brock allen at
Tue Dec 16 16:47:03 PST 2014

On Dec 16, 2014, at 4:18 PM, Bergi wrote:

> However, I wonder whether the same thing should be done in non-concise method assignments, i.e. `PropertyDefinition : PropertyName : AssignmentExpression`. As the `PropertyDefinitionEvaluation` handles the "IsFunctionDefinition of AssignmentExpression" case specially, I think the static semantics for it should do so as well (and forbid `super` calls in them).

But there is a difference here.  Functions defined in this manner are constructors (the support [[Construct]] while concise methods are not.


More information about the es-discuss mailing list