@@ -8425,19 +8425,17 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
8425
8425
1. Let |onFulfilledSteps| be the following steps given argument |V|:
8426
8426
1. Let |value| be the result of [=converted to an IDL value|converting=] |V| to an IDL
8427
8427
value of type |T|.
8428
- 1. If there are no steps that are required to be run if the promise was fulfilled, then
8429
- return <emu-val>undefined</emu-val>.
8430
- 1. Let |result| be the result of performing any steps that were required to be run if
8431
- the promise was fulfilled, given |value| if |T| is not {{undefined}}.
8428
+ 1. If there is a set of steps to be run if the promise was fulfilled, then let |result| be
8429
+ the result of performing them, given |value| if |T| is not {{undefined}}. Otherwise, let
8430
+ |result| be |value|.
8432
8431
1. Return |result|, [=converted to an ECMAScript value=].
8433
8432
1. Let |onFulfilled| be [=!=] [$CreateBuiltinFunction$](|onFulfilledSteps|, « »):
8434
8433
1. Let |onRejectedSteps| be the following steps given argument |R|:
8435
8434
1. Let |reason| be the result of [=converted to an IDL value|converting=]
8436
8435
|R| to an IDL value of type {{any}}.
8437
- 1. If there are no steps that are required to be run if the promise was rejected, then
8438
- return <emu-val>undefined</emu-val>.
8439
- 1. Let |result| be the result of performing any steps that were required to be run if the
8440
- promise was rejected, given |reason|.
8436
+ 1. If there is a set of steps to be run if the promise was rejected, then let |result| be
8437
+ the result of performing them, given |reason|. Otherwise, let |result| be
8438
+ [=a promise rejected with=] |reason|.
8441
8439
1. Return |result|, [=converted to an ECMAScript value=].
8442
8440
1. Let |onRejected| be [=!=] [$CreateBuiltinFunction$](|onRejectedSteps|, « »):
8443
8441
1. Let |constructor| be |promise|.\[[Promise]].\[[Realm]].\[[Intrinsics]].[[{{%Promise%}}]].
@@ -8461,7 +8459,7 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
8461
8459
<code><a interface>Promise</a><|T|></code> |promise| given some steps |steps| taking a
8462
8460
value of type |T|, perform the following steps:
8463
8461
8464
- 1. [=promise/React =] to |promise|:
8462
+ 1. Return the result of [=promise/reacting =] to |promise|:
8465
8463
* If |promise| was fulfilled with value |v|, then:
8466
8464
1. Perform |steps| with |v|.
8467
8465
</div>
@@ -8472,7 +8470,7 @@ IDL [=promise type=] values are represented by ECMAScript [=PromiseCapability=]
8472
8470
<code><a interface>Promise</a><<var ignore>T</var>></code> |promise| given some steps
8473
8471
|steps| taking an ECMAScript value, perform the following steps:
8474
8472
8475
- 1. [=promise/React =] to |promise|:
8473
+ 1. Return the result of [=promise/reacting =] to |promise|:
8476
8474
* If |promise| was rejected with reason |r|, then:
8477
8475
1. Perform |steps| with |r|.
8478
8476
</div>
0 commit comments