You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop requiring an event loop for queue a microtask
A microtask cannot cross the event loop boundary and thus necessarily has a surrounding agent. As such the event loop is always clear (but the document might not be).
Without this you would get weird results in at least two cases:
* A microtask would never run if it were queued on an event loop without tasks.
* A microtask queued on another event loop could interleave microtasks on the currently running task of that event loop.
0 commit comments