"use strict" VS setTimeout
bzbarsky at mit.edu
Mon Sep 8 16:44:03 PDT 2014
On 9/8/14, 7:10 PM, Brendan Eich wrote:
> The point here is that otherWin.setTimeout(func, ...) must -- because of
> "is" not "ought" -- not pass undefined to func in case it is strict
> mode, because if it's sloppy and if it is scoped by the current window
> (not otherWin), then the wrong window will be used.
Though again, IE9 and before use that wrong window. So it's at least
_possible_ that UAs could change to that behavior (change back, in the
case of IE).
I'm just not willing to have Gecko go first on this one given our past
experiences around this stuff.
More information about the es-discuss