What is an arrow function bound to in a module?

```js
export var a = () => this;
```


On Mon, Jun 9, 2014 at 7:08 PM, Caridy Patino <[email protected]> wrote:

> My point: if 'this' is not global in modules, then ES6 must have an
>> alternative way to name the global object.
>>
>
> Yes, we covered that last week. `Reflect.global` seems like the right
> place for it considering that it will be defined per realm.
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to