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

Semicolon swallowed at end of export declaration #726

Open
gabejohnson opened this issue Jun 12, 2017 · 1 comment
Open

Semicolon swallowed at end of export declaration #726

gabejohnson opened this issue Jun 12, 2017 · 1 comment

Comments

@gabejohnson
Copy link
Member

...
export { Category };

Function[Category.id] = x => x;
Function implements Category;

results in:

SyntaxError: unknown: Unexpected token, expected ; (25:21)
  23 |   return klass_324;
  24 | }, configurable: false, writable: false, enumerable: false}});
> 25 | export {Category_315}Function[Category_315.id] = (x_334) => x_334;
     |                      ^
  26 | Category_315._mixin(Function);

It's not a blocker now that I can export the interfaces directly. Just reporting.

@disnet
Copy link
Member

disnet commented Jun 12, 2017

Looks like it's due to an old shift codegen bug: shapesecurity/shift-codegen-js#33

More reason to update to the latest shift.

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

No branches or pull requests

2 participants