From b080ed28f7b1bf46604b29c478cab76e94c1d216 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Thu, 3 Jul 2025 13:23:37 +0900 Subject: [PATCH] Do not throw if the attribute setter is called with no arguments --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index f39d69e4..f12fa92b 100644 --- a/index.bs +++ b/index.bs @@ -12264,8 +12264,8 @@ in which case they are exposed on every object that [=implements=] the interface undefined; 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 {{TypeError}}. - 1. Let |V| be the value of the first argument passed. + 1. Let |V| be undefined. + 1. If any arguments were passed, then set |V| to the value of the first argument passed. 1. Let |id| be |attribute|'s [=identifier=]. 1. Let |idlObject| be null. 1. If |attribute| is a [=regular attribute=]: