On 7/10/13 5:09 PM, Bobby Holley wrote:
> I've always been really wary of microtasks though - it seems like one of
> those magic things that we sprinkle everywhere (like requests and unmarking
> gray) that we're generally moving away from.
Microtasks are clearly defined in the spec, is the idea, so we shouldn't
have any issues in terms of where microtask checkpoints happen.
Basically there are two places they happen: when the JS stack completely
unwinds and when the event loop spins.
> What about tying it to script entry points? Are they roughly isomorphic, or
> are there important divergences?
There are important divergences. If I do a dispatchEvent, there is a
script entry point for each event listener that fires, but we don't
really want to be resetting the slow script timer each time an event
listener completes, I believe. That's basically the setup we have right
now and one I'd like to move away from.
-Boris