Bug 141664 - Web Inspector: ES6: Improved Support for Promises - Promise Reactions
Summary: Web Inspector: ES6: Improved Support for Promises - Promise Reactions
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-02-16 13:46 PST by Joseph Pecoraro
Modified: 2016-12-14 08:27 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-02-16 13:46:20 PST
* SUMMARY
ES6: Improved Console Support for Promises - Promise Reactions.

Internal Slots: (See JSPromise / JSPromiseReaction)

[[PromiseFulfillReactions]]
  - A List of PromiseReaction records to be processed when/if the promise transitions from the "pending" state to the "fulfilled" state.

[[PromiseRejectReactions]]
  - A List of PromiseReaction records to be processed when/if the promise transitions from the "pending" state to the "rejected" state.
Comment 1 Radar WebKit Bug Importer 2015-02-16 13:46:43 PST
<rdar://problem/19851072>
Comment 2 Yusuke Suzuki 2015-07-06 23:00:12 PDT
ES6 Promise is updated and now written in JS.
Promise has private symbol fields; promiseFulfillReactions and promiseRejectReactions.

If the Promise status is pending, its value is JS array of reaction objects.
Comment 3 Yusuke Suzuki 2016-12-14 08:27:31 PST
Recently, promise reactions are merged into one array.