Skip to content

Commit 909c3fe

Browse files
authored
Do not throw if the attribute setter is called with no arguments
WPT will be updated as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1974950. Fixes #1497.
1 parent a8b10f5 commit 909c3fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12265,8 +12265,8 @@ in which case they are exposed on every object that [=implements=] the interface
1226512265
<emu-val>undefined</emu-val>; there is no [=attribute setter=] function.
1226612266
1. Assert: |attribute|'s type is not a [=promise type=].
1226712267
1. Let |steps| be the following series of steps:
12268-
1. If no arguments were passed, then [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
12269-
1. Let |V| be the value of the first argument passed.
12268+
1. Let |V| be <emu-val>undefined</emu-val>.
12269+
1. If any arguments were passed, then set |V| to the value of the first argument passed.
1227012270
1. Let |id| be |attribute|'s [=identifier=].
1227112271
1. Let |idlObject| be null.
1227212272
1. If |attribute| is a [=regular attribute=]:

0 commit comments

Comments
 (0)