Re: [whatwg/webidl] Editorial: give optional algorithm parameters default values (PR #1674)

@annevk approved this pull request.



> @@ -8667,10 +8667,9 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=]
 
 <div algorithm>
 
-    To <dfn export>resolve</dfn> a <code><a interface>Promise</a>&lt;|T|&gt;</code> |p| with |x| (a
-    value of type |T|), perform the following steps:
+    To <dfn export>resolve</dfn> a <code><a interface>Promise</a>&lt;|T|&gt;</code> |p|, optionally
+    with a value of type |T| |x| (default {{undefined}}), perform the following steps:

```suggestion
    with a value of type |T| |x| (default {{undefined}}):
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1674#pullrequestreview-5887691050
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1674/review/5887691050@github.com>

Received on Friday, 13 November 2026 07:41:14 UTC