archives

« Bugzilla Issues Index

#3284 — super Arguments in methods?


It is currently a SyntaxError to have NewSuper in a MethodDefinition. However, we do not have the same restriction for `super Arguments`.

class C {
method() {
super();
}
}

The above is valid and it will call `method.__proto__` which is clearly not very useful.

We should make the above a syntax error as well.


But we still need to support it in FunctionDeclaration and FunctionExpression to support building classes imperatively.


fixed in rev30 editor's draft


fixed in rev30