Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It should be a parse error if a class static method contains a 'super' #1003

Closed
mikesherov opened this issue Feb 8, 2015 · 1 comment
Closed

Comments

@mikesherov
Copy link
Member

From https://code.google.com/p/esprima/issues/detail?id=633:

@jeffmo says:

As of the latest version of the spec, it is no longer statically valid to have references to 'super' in static class methods:

https://people.mozilla.org/~jorendorff/es6-draft.html#sec-class-definitions-static-semantics-early-errors

Currently esprima will parse this without issue, but it should through a syntax error.
Clarification: It's only invalid to have super() call in any method...not just static methods.

(this is a recent constraint as of the Jan15 tc39 meeting)
Further clarification: super.whatever (member-expression-ish thing) appears to still be valid

@ariya
Copy link
Contributor

ariya commented Jun 21, 2015

Harmony branch is not developed anymore (#1172).

@ariya ariya closed this as completed Jun 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants