From e1b39e07b5301dbfcdeee5db86d2540c0aacbe79 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 13 Aug 2024 16:04:21 +0200 Subject: [PATCH] Correct doAmazingness() example As this is a frequently made error, having it wrong in DOM does the community a disservice. Fixes #1300. --- dom.bs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dom.bs b/dom.bs index a5f9b88c..7c648bde 100644 --- a/dom.bs +++ b/dom.bs @@ -2122,6 +2122,8 @@ the following: could be as follows:
    +
  1. Let |global| be [=this=]'s [=relevant global object=]. +

  2. Let |p| be [=a new promise=].

  3. @@ -2149,7 +2151,8 @@ the following:
    1. Let |amazingResult| be the result of doing some amazing things. -

    2. [=/Resolve=] |p| with |amazingResult|. +

    3. [=Queue a global task=] on the amazing task source given |global| to [=/resolve=] |p| + with |amazingResult|.

  4. Return |p|. @@ -10374,6 +10377,7 @@ Elliott Sprehn, Emilio Cobos Álvarez, Eric Bidelman, Erik Arvidsson, +François Daoust, François Remy, Gary Kacmarcik, Gavin Nicol,