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
The consensus for ESTree is to make export default function () {} parse as a FunctionDeclaration with the id property with a value of null (matches current behavior of Esprima, Espree, Flow, Babylon) rather than FunctionExpression
@marijnh Not really. To be honest, I've opposed this one for a while in early stages, as it's quite a breaking change, which caused trouble when happened in Esprima/Babylon, but now it's probably fine to have it just for the sake of compat.
@RReverser I read the thread, and I agree with your reasoning there, but as you said, the standard seems to have moved on, so I guess we should follow.
Ref estree/estree#98 (comment)
Previous discussion: #208
The consensus for ESTree is to make
export default function () {}
parse as aFunctionDeclaration
with theid
property with a value ofnull
(matches current behavior of Esprima, Espree, Flow, Babylon) rather thanFunctionExpression
Espree workaround is https://github.com/eslint/espree/blob/a3442b5949dd249e1a81ce4e014ca5e0f17f732c/espree.js#L197-L202
The text was updated successfully, but these errors were encountered: