Why is "export default var a = 1;" invalid syntax?

Dave Herman dherman at mozilla.com
Mon Dec 15 08:28:53 PST 2014


On Mon, Dec 15, 2014 at 8:22 AM, Glen Huang <curvedmark at gmail.com> wrote:

> export a;
>
> I think this is illegal, should be {a: a}
>

Oops, right you are! Got one wrong on my ES6 quiz. ;-P

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141215/f1ecded3/attachment.html>


More information about the es-discuss mailing list