rusty-ecma / RESSA

Rusty EcmaScript Syntax Analyzer
MIT License
111 stars 14 forks source link

Inavlid use of es6 export syntax #72

Closed Fee0 closed 1 year ago

Fee0 commented 1 year ago

The following code gives an InvalidExportError:

class A  {
    foo() {}
}

export { A }

A constructor works. A getter or setter works as well. Only methods causes an error it seems.

*Tested on the source location branch

FreeMasen commented 1 year ago

Thank you for the bug report! I am hoping to get the source location branch published this weekend which will allow me to get things rolling on fixes like this

FreeMasen commented 1 year ago

This has been merged and published as part of version 0.8.0