Event loops in navigated-away-from windows

Mark S. Miller erights at google.com
Sat Sep 27 06:52:53 PDT 2014

What happens if someone runs

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

in a web page?

On Fri, Sep 26, 2014 at 10:03 PM, Boris Zbarsky <bzbarsky at mit.edu> 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
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140927/b9bcd1a6/attachment.html>

More information about the es-discuss mailing list