[Webkit-unassigned] [Bug 140043] js/dom/Promise.html is flaky

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 2 17:39:47 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=140043

--- Comment #4 from Sam Weinig <sam at webkit.org> ---
(In reply to comment #3)
> (In reply to comment #2)
> > Are promise and setTimeout timers on different event queues?
> 
> They are...kind of.

I don't think anything in our implementation ensures this ordering, but it really should. This is a great example of why it would be great if we have a unified event loop mechanism.

In this case, the bug is that the .then() should run at the next microtask checkpoint, which is defined as being before the next chance for a timer to fire. Our implementation of Promises does not use the microtask checkpoint, but rather uses ScriptExecutionContext::postTask() mechanism, which is not quite the same thing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150103/67cf2772/attachment-0002.html>


More information about the webkit-unassigned mailing list