module exports

Brian Terlson Brian.Terlson at microsoft.com
Fri Mar 14 12:32:42 PDT 2014


David Herman wrote:
> I think we're seeing the exact same phenomenon with `export default` -- the modifiers make it look more like a declaration context. So I think we should consider doing the same thing as we do for ExpressionStatement: <snip>

I agree with the confusion (due in part because the nearly-identical TypeScript syntax puts the exported identifiers in scope), and the fix seems to address the problem so I support it.


More information about the es-discuss mailing list