Behavior of () => {'use strict'; return typeof this }

Andrea Giammarchi andrea.giammarchi at gmail.com
Thu Jun 6 13:03:08 PDT 2013


and for "it breaks" I meant "it feels broken" ... this is not a real issue
but MDN should mention it to avoid any sort of confusion. I'll edit that
page, cheers


On Thu, Jun 6, 2013 at 12:54 PM, Andrea Giammarchi <
andrea.giammarchi at gmail.com> wrote:

> which means it breaks explicit 'use strict' directive so, in my opinion,
> is a legit question or, at least, this should be mentioned in the MDN page ?
>
>
> On Thu, Jun 6, 2013 at 12:52 PM, David Bruant <bruant.d at gmail.com> wrote:
>
>> Le 06/06/2013 12:49, David Bruant a écrit :
>>
>>  Hi,
>>>
>>> Should the "use strict" directive work inside an arrow function?
>>> Currently, for () => {'use strict'; return typeof this } returns
>>> 'object' in Firefox (it's the global object). Is it the intended behavior?
>>>
>> Yeah... Don't bother answering. lexical this. Appologies for the noise.
>>
>>
>> David
>> ______________________________**_________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130606/2463eed5/attachment.html>


More information about the es-discuss mailing list