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
We need ES6 Promise implementation to support some APIs and dogfooding. However, SpiderMonkey has not been implemented it yet because there are a web standards problems with how the JS virtual machine's event loop should interact with the event loop of the web browser itself.
Therefore, we need to implement Promise in Servo until SM gets Promise in itself.
At least #4283 needs to be completed first, and we probably need to run any proposed design by the more-experienced Gecko developers first to make sure we don't do anything silly.
Indeed. I am working on it right now in that I'm implementing Promises in
SpiderMonkey. Once that's landed, I'll start working on the Servo
integration.
IIRC they can't enable SM promises yet in Gecko itself because of win32 issues, but @tschneidereit knows all there is to know about them so let's wait for his reply.
10:01 <till> jdm: we can prototype it right now. For actually enabling it we *need* bug 1272887 and bug 1280789, and *want* half of the patches pending review in bug 911216
10:01 <firebot> https://bugzil.la/1272887 — FIXED, sphink — win32 crash during GC when using PersistentRooted<GCVector>
10:01 <firebot> https://bugzil.la/1280789 — FIXED — unbreak mingw builds after 1272887
10:01 <firebot> https://bugzil.la/911216 — ASSIGNED, till — Implement promises in the JavaScript engine
10:01 <jdm> till: ok, so an SM upgrade right now won't even get us to the point we'll need to be at?
10:01 <till> jdm: in other words, a smup beginning next week :)
I'm going to start prototyping codegen integration.
master...jdm:promise-binding is what I've got so far. The rooting story for the JS promise values is not great yet, but it's probably no worse than how we deal with EventTarget and other callbacks?
Activity
[-]Implement Promsie in Servo[/-][+]Implement Promise in Servo[/+]farodin91 commentedon Jul 29, 2015
I like to do this.
jdm commentedon Jul 29, 2015
At least #4283 needs to be completed first, and we probably need to run any proposed design by the more-experienced Gecko developers first to make sure we don't do anything silly.
farodin91 commentedon Jul 29, 2015
Okay
Ms2ger commentedon Oct 6, 2015
Something happened: https://bugzilla.mozilla.org/show_bug.cgi?id=1185106
larsbergstrom commentedon Jan 26, 2016
@tschneidereit is planning to work on this in Q1.
tschneidereit commentedon Jan 26, 2016
larsbergstrom commentedon May 12, 2016
It looks like @nox landed the SpiderMonkey update with your work!
@tschneidereit do you know what the timeline is for promises in Servo?
The WebBluetooth folks (cc @loki04) were wondering. Thanks!
nox commentedon May 12, 2016
IIRC they can't enable SM promises yet in Gecko itself because of win32 issues, but @tschneidereit knows all there is to know about them so let's wait for his reply.
jdm commentedon Jun 21, 2016
I'm going to start prototyping codegen integration.
jdm commentedon Jun 21, 2016
master...jdm:promise-binding is what I've got so far. The rooting story for the JS promise values is not great yet, but it's probably no worse than how we deal with EventTarget and other callbacks?
jdm commentedon Jun 28, 2016
Blocks #11894.
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=<try>
Auto merge of #12830 - jdm:promises, r=Ms2ger