Skip to content

Implement Promise in Servo #4282

Closed

Description

@tetsuharuohzeki

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.

See also: https://github.com/servo/servo/wiki/Mozlandia-JS#promises

Activity

  1. added
    A-content/dom
    A-content/bindings
    on Dec 8, 2014
  2. changed the title [-]Implement Promsie in Servo[/-] [+]Implement Promise in Servo[/+] on Dec 8, 2014
  3. farodin91 commented on Jul 29, 2015

    @farodin91
    Contributor

    I like to do this.

  4. jdm commented on Jul 29, 2015

    @jdm
    Member

    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.

  5. farodin91 commented on Jul 29, 2015

    @farodin91
    Contributor

    Okay

  6. larsbergstrom commented on Jan 26, 2016

    @larsbergstrom
    Contributor

    @tschneidereit is planning to work on this in Q1.

  7. tschneidereit commented on Jan 26, 2016

    @tschneidereit
    Contributor
  8. larsbergstrom commented on May 12, 2016

    @larsbergstrom
    Contributor

    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!

  9. nox commented on May 12, 2016

    @nox
    Contributor

    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. jdm commented on Jun 21, 2016

    @jdm
    Member
    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.

  11. jdm commented on Jun 21, 2016

    @jdm
    Member

    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?

  12. jdm commented on Jun 28, 2016

    @jdm
    Member

    Blocks #11894.

  13. added 3 commits that reference this issue on Aug 24, 2016
    b380723
    58a3f74
    0c8834f
  14. added a commit that references this issue on Sep 6, 2016
    5b1a7cd
  15. added 2 commits that reference this issue on Sep 21, 2016
    9ca51a4
    2b1a39c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/bindingsA-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions