"use strict" VS setTimeout

Axel Rauschmayer axel at rauschma.de
Sun Sep 7 11:02:40 PDT 2014


On Sep 7, 2014, at 19:47 , Mark S. Miller <erights at google.com> wrote:

> On Sun, Sep 7, 2014 at 10:36 AM, Mathias Bynens <mathiasb at opera.com> wrote:
> On Sun, Sep 7, 2014 at 7:29 PM, Andrea Giammarchi
> <andrea.giammarchi at gmail.com> wrote:
> > This looks like a potential problem when possible passed methods are not
> > bound + it looks inconsistent with *"use strict"* expectations.
> 
> Yes. This looks like a typical screwup. Thanks for pointing it out.

Interesting. Follow-up question: isn’t strictness propagated lexically? That is, shouldn’t the parameter of `setTimeout()` be strict even without being explicitly declared as such?

-- 
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/20140907/3a11a3a7/attachment.html>


More information about the es-discuss mailing list