Re: [whatwg/webidl] Do not throw if the attribute setter is called with no arguments (PR #1498)

@arai-a commented on this pull request.



> @@ -12264,8 +12264,8 @@ in which case they are exposed on every object that [=implements=] the interface
         <emu-val>undefined</emu-val>; there is no [=attribute setter=] function.
     1.  Assert: |attribute|'s type is not a [=promise type=].
     1.  Let |steps| be the following series of steps:
-        1.  If no arguments were passed, then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
-        1.  Let |V| be the value of the first argument passed.
+        1.  If no arguments were passed, then let |V| be <emu-val>undefined</emu-val>.
+        1.  Otherwise, let |V| be the value of the first argument passed.

Thanks!
addressed the comment.

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

Message ID: <whatwg/webidl/pull/1498/review/2981582192@github.com>

Received on Thursday, 3 July 2025 04:24:49 UTC