sweet-js/sweet-core

Semicolon swallowed at end of export declaration

gabejohnson opened this issue · 1 comments

...
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.

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

More reason to update to the latest shift.