*would be equivalent of it was allowed
On Jan 29, 2014 6:30 PM, "Domenic Denicola" <domenic at domenicdenicola.com>
wrote:
> You cannot have a declaration with "default" as the IdentifierName,
> since that is a reserved word. So `export let default = foo();` is not
> possible.
>
>
> ------------------------------
> *From:* es-discuss <es-discuss-bounces at mozilla.org> on behalf of Calvin
> Metcalf <calvin.metcalf at gmail.com>
> *Sent:* Wednesday, January 29, 2014 18:25
> *To:* Jason Orendorff
> *Cc:* EcmaScript; Erik Arvidsson
> *Subject:* Re: restrictions on module import export names
>
>
> So the following are equivalent?
>
> ```js
> export default foo();
> export let default = foo();
> ```
> On Jan 29, 2014 5:19 PM, "Jason Orendorff" <jason.orendorff at gmail.com>
> wrote:
>
>> 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
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140129/a1b45392/attachment-0001.html>
domenic at domenicdenicola.com (2014-02-04T20:54:15.989Z)