Skip to content

Commit

Permalink
Return a PromiseCapability from "react"
Browse files Browse the repository at this point in the history
Fixes #1443.
  • Loading branch information
ADKaster authored Oct 29, 2024
1 parent 33c2eec commit 35ec0d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -8325,8 +8325,9 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=]

Note: Not all callers will use the returned {{Promise}}. Implementations might wish to
avoid creating |newCapability| in those cases.
1. Return [$PerformPromiseThen$](|promise|.\[[Promise]], |onFulfilled|, |onRejected|,
1. Perform [$PerformPromiseThen$](|promise|.\[[Promise]], |onFulfilled|, |onRejected|,
|newCapability|).
1. Return |newCapability|.

Note: This algorithm will behave in a very similar way to the
{{%Promise.prototype.then%|promise.then()}} method.
Expand Down

0 comments on commit 35ec0d4

Please sign in to comment.