restrictions on module import export names

Jason Orendorff jason.orendorff at gmail.com
Wed Jan 29 14:19:38 PST 2014


On Wed, Jan 29, 2014 at 2:00 PM, Erik Arvidsson
<erik.arvidsson at gmail.com> wrote:
> `export default 1` works.
>
> https://people.mozilla.org/~jorendorff/es6-draft.html#sec-exports
>
> ExportDeclaration :
>   export default AssignmentExpression ;

I think that just exports the value 1 with the name "default".

-j


More information about the es-discuss mailing list