Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

export new Foo() shouldn't parse #238

Closed
zertosh opened this issue Nov 26, 2016 · 1 comment
Closed

export new Foo() shouldn't parse #238

zertosh opened this issue Nov 26, 2016 · 1 comment

Comments

@zertosh
Copy link
Member

zertosh commented Nov 26, 2016

Parses with babylon@16.4.1, but doesn't with acorn@4.0.3, esprima@3.1.1 or flow@0.36.0.

A few more examples:

export typeof foo;
export void 0;
export delete foo.bar;
export this.foo;

Seems like an issue with any unary operator.

@DrewML
Copy link
Member

DrewML commented Nov 28, 2016

Another example: statements

export for (;;);
export while(foo);

kaicataldo added a commit to kaicataldo/babylon that referenced this issue Nov 28, 2016
kaicataldo added a commit to kaicataldo/babylon that referenced this issue Nov 29, 2016
kaicataldo added a commit to kaicataldo/babylon that referenced this issue Nov 29, 2016
@danez danez closed this as completed in 5fb4353 Dec 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants