Skip to content

Commit 24c129e

Browse files
committed
Fix missing tasks in parallel steps in WebCodecs
1 parent fd0c13f commit 24c129e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5583,8 +5583,10 @@
55835583
1. If |type| is not a [=valid image MIME type=], return a {{Promise}}
55845584
rejected with {{TypeError}}.
55855585
2. Let |p| be a new {{Promise}}.
5586-
3. In parallel, resolve |p| with the result of running the
5587-
[=Check Type Support=] algorithm with |type|.
5586+
3. Run the following steps [=in parallel=]:
5587+
1. Let |isSupported| be the result of running the
5588+
[=Check Type Support=] algorithm with |type|.
5589+
2. [=Queue a task=] to resolve |p| with |isSupported|.
55885590
4. Return |p|.
55895591

55905592
### Algorithms ### {#imagedecoder-algorithms}

0 commit comments

Comments
 (0)