archives

« Bugzilla Issues Index

#1187 — default constructor: `super.constructor` is over-constrained


In 13.5, "Runtime Semantics: ClassDefinitionEvaluation", item 7 stands:

If constructor is empty, then
a. Let constructor be the result of parsing the String "constructor(... args){super.constructor(...args);}" using the syntactic grammar with the goal symbol MethodDefinition.

I think "super.constructor" is overconstrained, it would be more generic and future-friendly, if that would be

If constructor is empty, then
a. Let constructor be the result of parsing the String "constructor(... args){super(...args);}" using the syntactic grammar with the goal symbol MethodDefinition.

The effect is the same, as things stand now.


fixed in rev 14 editor's draft


in Rev 14 draft