Skip to content

Commit 35ec0d4

Browse files
authored
Return a PromiseCapability from "react"
Fixes #1443.
1 parent 33c2eec commit 35ec0d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.bs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8325,8 +8325,9 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=]
83258325

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

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

0 commit comments

Comments
 (0)