File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8416,17 +8416,20 @@ JavaScript code.
8416
8416
The <code>addDelay(|ms|, |promise|)</code> method steps are:
8417
8417
8418
8418
1. Let |realm| be <b>this</b>'s [=relevant Realm=].
8419
+ 1. Let |taskSource| be some appropriate [=task source=].
8419
8420
1. If |ms| is NaN, let |ms| be +0; otherwise let |ms| be the maximum of |ms| and +0.
8420
8421
1. Let |p| be [=a new promise=] in |realm|.
8421
8422
1. [=Upon settling=] of |promise|:
8422
8423
* If |promise| was fulfilled with value |v|, then:
8423
8424
1. Run the following steps [=in parallel=]:
8424
8425
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|.
8426
8428
* If |promise| was rejected with reason |r|, then:
8427
8429
1. Run the following steps [=in parallel=]:
8428
8430
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|.
8430
8433
1. Return |p|.
8431
8434
</div>
8432
8435
</div>
@@ -14351,6 +14354,7 @@ The editor would like to thank the following people for contributing
14351
14354
to this specification:
14352
14355
Glenn Adams,
14353
14356
David Andersson,
14357
+ Jake Archibald,
14354
14358
L. David Baron,
14355
14359
Art Barstow,
14356
14360
Nils Barth,
You can’t perform that action at this time.
0 commit comments