Skip to content

Commit a226022

Browse files
committed
Fix example for 'upon settling'.
Fixes #788.
1 parent 182b487 commit a226022

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.bs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8416,17 +8416,20 @@ JavaScript code.
84168416
The <code>addDelay(|ms|, |promise|)</code> method steps are:
84178417

84188418
1. Let |realm| be <b>this</b>'s [=relevant Realm=].
8419+
1. Let |taskSource| be some appropriate [=task source=].
84198420
1. If |ms| is NaN, let |ms| be +0; otherwise let |ms| be the maximum of |ms| and +0.
84208421
1. Let |p| be [=a new promise=] in |realm|.
84218422
1. [=Upon settling=] of |promise|:
84228423
* If |promise| was fulfilled with value |v|, then:
84238424
1. Run the following steps [=in parallel=]:
84248425
1. Wait |ms| milliseconds.
8425-
1. [=Resolve=] |promise| with |v|.
8426+
1. [=Queue a task=] to run the following steps on |taskSource|:
8427+
1. [=Resolve=] |p| with |v|.
84268428
* If |promise| was rejected with reason |r|, then:
84278429
1. Run the following steps [=in parallel=]:
84288430
1. Wait |ms| milliseconds.
8429-
1. [=Reject=] |promise| with |r|.
8431+
1. [=Queue a task=] to run the following steps on |taskSource|:
8432+
1. [=Reject=] |p| with |r|.
84308433
1. Return |p|.
84318434
</div>
84328435
</div>
@@ -14351,6 +14354,7 @@ The editor would like to thank the following people for contributing
1435114354
to this specification:
1435214355
Glenn Adams,
1435314356
David Andersson,
14357+
Jake Archibald,
1435414358
L. David Baron,
1435514359
Art Barstow,
1435614360
Nils Barth,

0 commit comments

Comments
 (0)