`this` inside modules

Axel Rauschmayer axel at rauschma.de
Thu Aug 28 12:13:30 PDT 2014


The latest info from Domenic is:

```js
import { name, url } from this module;
```

Source: http://esdiscuss.org/topic/es6-module-syntax-done


On 28 Aug 2014, at 20:19 , Rick Waldron <waldron.rick at gmail.com> wrote:

> 
> 
> 
> On Thu, Aug 28, 2014 at 2:17 PM, Matthew Robb <matthewwrobb at gmail.com> wrote:
> From my interpretation of the last face to face notes and the breakout session it would appear as if instead you will be able to `import mod from this`
> 
> Can you link to the reference?
> 
> Rick
> 
>  
> 
> 
> - Matthew Robb
> 
> 
> On Thu, Aug 28, 2014 at 12:26 PM, John Barton <johnjbarton at google.com> wrote:
> Was this decision reversed? I don't see Reflect.global in the new spec. online.
> jjb
> 
> 
> On Mon, Jun 9, 2014 at 10:08 AM, Caridy Patino <caridy at gmail.com> 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
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 
> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-- 
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de



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


More information about the es-discuss mailing list