You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, e.g. export default 42; produces a literal as the value of the declaration field. Should it produce an expressionStatement node instead, which has a literal inside it?
If no, then it seems we're unwrapping arbitrary expressions inside the export default syntax, and something like export default (1 + 42); should be similarly unwrapped to have a binaryExpression be the value of the declaration field>
The text was updated successfully, but these errors were encountered:
Right now, e.g.
export default 42;
produces aliteral
as the value of thedeclaration
field. Should it produce anexpressionStatement
node instead, which has a literal inside it?If no, then it seems we're unwrapping arbitrary expressions inside the
export default
syntax, and something likeexport default (1 + 42);
should be similarly unwrapped to have abinaryExpression
be the value of thedeclaration
field>The text was updated successfully, but these errors were encountered: