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

Can't use static as an object key #3129

Closed
markandrus opened this issue Jan 4, 2017 · 1 comment · May be fixed by #5452
Closed

Can't use static as an object key #3129

markandrus opened this issue Jan 4, 2017 · 1 comment · May be fixed by #5452

Comments

@markandrus
Copy link

Hi,

My issue appears very similar to #829. I'd like to type the webidl2.js AST. Some of the AST nodes include a static property. When I try to type this with Flow, e.g.

declare interface IDLMember {
  static: boolean;
  // additional properties elided
};

I get the following error.

$ flow check
Library parse error:
decls/idlmember.js:2
  3:   static: boolean;
       ^^^^^^ Use of future reserved word in strict mode

Found 1 error

Moreover, disabling module.use_strict does not appear to have any affect.

@loyd
Copy link

loyd commented Nov 19, 2017

Similar problems with babel and babylon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants