`this` inside modules
Mark S. Miller
erights at google.com
Mon Jun 9 09:23:17 PDT 2014
The genuine global is typically the source of tremendous amounts of
authority. Much of the mechanism of SES is built to deny access to the
genuine global and to non-whitelisted global variables. Can the module
loader API be used to load a module with a different top level binding for
On Mon, Jun 9, 2014 at 9:17 AM, Kevin Smith <zenparsing at gmail.com> wrote:
> Just another related issue: in Traceur code we use 'this' in modules to
>> mean 'global', because in modules we have no other way to say 'global' in
>> code designed to work in browsers and node.
> Right - I do the same. I think leaving "this" to mean global would be
> just fine: there's no obvious advantage to changing this aspect of the
> design, this late in the game. And if there's no obvious advantage, then
> we're just churning.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss