Re: Strict mode callbacks and setTimeout

On Fri, Jul 8, 2011 at 12:36 PM, Ian Hickson <ian@hixie.ch> wrote:

> On Thu, 7 Jul 2011, Mark S. Miller wrote:
> >
> > Exactly. It makes a difference. Should
> >
> >      window1.setTimeout.call(window2, ...)
> >
> > use window1's or window2's task queue?
>
> There is only one task queue per task source for all Windows using the
> same event loop. So window1 and window2 use the same task queue here.
>

Cool. Then nothing breaks if we specify that a given setTimeout function
uses the window from its birth environment, as if it was lexically captured?
If so, can we go further and specify that setTimeout ignores its
this-binding?



>
> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>



-- 
    Cheers,
    --MarkM

Received on Friday, 8 July 2011 21:10:56 UTC