Skip to content

Commit db74ef4

Browse files
committed
Use "react" for the spec promise.then() analog
Closes #783.
1 parent a226022 commit db74ef4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8230,8 +8230,8 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
82308230

82318231
<div algorithm>
82328232

8233-
To <dfn id="dfn-perform-steps-once-promise-is-settled" export lt="upon settling">perform some steps once a promise is settled</dfn>,
8234-
given a <code><a interface>Promise</a>&lt;|T|&gt;</code> |promise| and one or two sets of steps
8233+
To <dfn id="dfn-perform-steps-once-promise-is-settled" export lt="react|reacting" for="promise">react</dfn>
8234+
to a <code><a interface>Promise</a>&lt;|T|&gt;</code> |promise|, given one or two sets of steps
82358235
to perform, covering when the promise is fulfilled, rejected, or both, perform the following
82368236
steps:
82378237

@@ -8274,7 +8274,7 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
82748274
<code><a interface>Promise</a>&lt;|T|&gt;</code> |promise| given some steps |steps| taking a
82758275
value of type |T|, perform the following steps:
82768276

8277-
1. [=Upon settling=] of |promise|:
8277+
1. [=promise/React=] to |promise|:
82788278
* If |promise| was fulfilled with value |v|, then:
82798279
1. Perform |steps| with |v|.
82808280
</div>
@@ -8285,7 +8285,7 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
82858285
<code><a interface>Promise</a>&lt;<var ignore>T</var>&gt;</code> |promise| given some steps
82868286
|steps| taking an ECMAScript value, perform the following steps:
82878287

8288-
1. [=Upon settling=] of |promise|:
8288+
1. [=promise/React=] to |promise|:
82898289
* If |promise| was rejected with reason |r|, then:
82908290
1. Perform |steps| with |r|.
82918291
</div>
@@ -8419,7 +8419,7 @@ JavaScript code.
84198419
1. Let |taskSource| be some appropriate [=task source=].
84208420
1. If |ms| is NaN, let |ms| be +0; otherwise let |ms| be the maximum of |ms| and +0.
84218421
1. Let |p| be [=a new promise=] in |realm|.
8422-
1. [=Upon settling=] of |promise|:
8422+
1. [=promise/React=] to |promise|:
84238423
* If |promise| was fulfilled with value |v|, then:
84248424
1. Run the following steps [=in parallel=]:
84258425
1. Wait |ms| milliseconds.

0 commit comments

Comments
 (0)