"use strict" VS setTimeout

Boris Zbarsky bzbarsky at mit.edu
Mon Sep 8 04:16:19 PDT 2014

On 9/8/14, 3:50 AM, Andrea Giammarchi wrote:
> I wonder what was breaking

I don't remember, unfortunately.  :(

> specially after showing there were
> inconsistencies between browsers.

It's worth asking the IE team whether they changed because of concrete 
web compat issues or just to align with the spec and other browsers.

> Yet nobody wrote a use case where a
> dev explicitly marks a callback as strict

It doesn't matter.  The web compat constraint, if any, would be with 
sloppy callbacks.  If the callback expects a "this" object other than 
its global, the caller needs to pass it explicitly.  Unless you want 
callers introspecting the strictness of the callee before deciding on 
what to do with "this"... but that seems pretty weird too.

> Curious to know if ES5 at that time was popular.

I don't know what you mean here.


More information about the es-discuss mailing list