`this` if the global object is not in the scope chain?

Domenic Denicola domenic at domenicdenicola.com
Tue Mar 19 18:32:30 PDT 2013


Such a situation should only be possible within modules (via a custom loader), from my understanding. In which case you’re going to be in strict mode anyway, so yes, it’s definitely `undefined`.

From: es-discuss-bounces at mozilla.org [mailto:es-discuss-bounces at mozilla.org] On Behalf Of Axel Rauschmayer
Sent: Tuesday, March 19, 2013 21:26
To: es-discuss list
Subject: `this` if the global object is not in the scope chain?

Is `this` undefined in that case?

--
Dr. Axel Rauschmayer
axel at rauschma.de<mailto:axel at rauschma.de>

home: rauschma.de<http://rauschma.de>
twitter: twitter.com/rauschma<http://twitter.com/rauschma>
blog: 2ality.com<http://2ality.com>

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


More information about the es-discuss mailing list