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

@f52985 commented on this pull request.



> @@ -8670,7 +8670,7 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=]
     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:
 
-    1.  If |x| is not given, then let it be the {{undefined}} value.
+    1.  If |x| is not given, then let |x| be the {{undefined}} value.

Thanks, done. I also applied the same to the two thisArg defaults in "call a user object's operation" and "invoke", which had the same pattern.

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

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

Received on Friday, 13 November 2026 07:01:48 UTC