What happens if someone runs

    (function f() {setImmediate(f);})();

in a web page?



On Fri, Sep 26, 2014 at 10:03 PM, Boris Zbarsky <[email protected]> wrote:

> Now that JS is growing an event loop, what should happen to it in
> navigated-away-from windows?
>
> To make this concrete:
>
> 1)  Say I have an object that came from such a window and it has an
> Object.observe observer on it that mutates the property being observed.
> Should this continue to run forever ever after the window is navigated away
> from?
>
> 2)  Say someone runs this in a web page:
>
>   (function f() Promise.resolve().then(f))()
>
> what should happen when the user navigates away from that web page and why?
>
> -Boris
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>



-- 
    Cheers,
    --MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to