`this` inside modules

Matthew Robb matthewwrobb at gmail.com
Thu Aug 28 11:25:03 PDT 2014


I'm sorry I must have been thinking about something else. This is what I
pulled from the last notes:

AWB:
> ```js
> import filename from this;
> // which basically: import filename from here;
> ```
> DD: Like this for relative
> DH: Completely amenable to this
> YK:
> ```js
> import * as me from here;
> me.import; // `me` is the context object
> ```
>
>
>
>
> #### Conclusion/Resolution
> - the api is right direction
> - each module gets its own version of that object
> - need some sort of access to the module contextual object
> - some sort of declarative form to get at
> - static contextual information about the module



- Matthew Robb


On Thu, Aug 28, 2014 at 2:19 PM, 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140828/c8d4be3a/attachment-0001.html>


More information about the es-discuss mailing list