Skip to content

Notify global object about rejected promises #15412

Closed

Description

@jdm

As part of the microtask checkpoint, we should be implementing the global unhandledrejection event.

Activity

  1. added
    A-content/script
    on Feb 6, 2017
  2. CYBAI commented on Mar 21, 2018

    @CYBAI
    Member

    Hi @jdm , I'd like to work on this one!

  3. jdm commented on Mar 21, 2018

    @jdm
    MemberAuthor

    Great! We should figure out if gecko does anything special to support this.

  4. CYBAI commented on Mar 25, 2018

    @CYBAI
    Member

    @jdm After reading the provided files above, let me confirm what I'll need to do.

    1. In InitializeCommon in CycleCollectedJSContext.cpp which should be as same as new_rt_and_cx method for initialization in Servo, I'll need to register SetPromiseRejectionTrackerCallback and also declare two global variable for mUncaughtRejections and mConsumedRejections.

    (Not sure if making mUncaughtRejections and mConsumedRejections in GlobalScope is correct or not?)

    pub unsafe fn new_rt_and_cx() -> Runtime {

    • Implement PromiseDebugging for Servo
    • Implement ReportRejectedPromise in promise.rs
  5. jdm commented on Mar 25, 2018

    @jdm
    MemberAuthor

    Yes, I think that all makes sense. Using GlobalScope sounds like the right approach.

  6. CYBAI commented on Mar 25, 2018

    @CYBAI
    Member

    Thanks! I'll start to work on this when I have time!

  7. added 2 commits that reference this issue on Jun 6, 2018
  8. added a commit that references this issue on Jun 19, 2018
    5bc87cc
  9. added a commit that references this issue on Aug 14, 2018
    0aaecbc
  10. added 4 commits that reference this issue on Aug 25, 2018
    6e473ce
    ebaf61b
    214a233
    57bcb80
  11. 6 remaining items

  12. added 2 commits that reference this issue on Sep 24, 2018
    35f0c8e
    ea12754
  13. added 12 commits that reference this issue on Oct 14, 2018
    85b7eb3
    d25cf22
    441c696
    4d1f89c
    d85f8a4
    4945cd5
    bed2649
    2cd5dc8
    18d7ad8
    a371f16
    759fee8
    30d9962
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/script

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions