ES6 spec: `export default` HoistableDeclaration

Axel Rauschmayer axel at
Wed Nov 19 06:54:12 PST 2014


> `export default` HoistableDeclaration
> `export default` [lookahead ≠ `function`] AssignmentExpression `;`


* Do these grammar rules mean that you have to put anonymous function expressions in parentheses? Is that desirable (given that it’s a frequent use case)?
* If the purpose of the first rule is to enable default-exporting of declarations (= no semicolon) – shouldn’t classes be included?



Dr. Axel Rauschmayer
axel at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list