Skip to content

Commit

Permalink
Correct doAmazingness() example
Browse files Browse the repository at this point in the history
As this is a frequently made error, having it wrong in DOM does the community a disservice.

Fixes #1300.
  • Loading branch information
annevk committed Aug 13, 2024
1 parent 809bfa2 commit e1b39e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2122,6 +2122,8 @@ the following:
could be as follows:

<ol>
<li><p>Let |global| be [=this=]'s [=relevant global object=].

<li><p>Let |p| be [=a new promise=].

<li>
Expand Down Expand Up @@ -2149,7 +2151,8 @@ the following:
<ol>
<li><p>Let |amazingResult| be the result of doing some amazing things.

<li><p>[=/Resolve=] |p| with |amazingResult|.
<li><p>[=Queue a global task=] on the amazing task source given |global| to [=/resolve=] |p|
with |amazingResult|.
</ol>

<li><p>Return |p|.
Expand Down Expand Up @@ -10374,6 +10377,7 @@ Elliott Sprehn,
Emilio Cobos Álvarez,
Eric Bidelman,
Erik Arvidsson,
François Daoust<!-- tidoust; GitHub -->,
François Remy<!-- FremyCompany; GitHub -->,
Gary Kacmarcik,
Gavin Nicol,
Expand Down

0 comments on commit e1b39e0

Please sign in to comment.