Do not throw if the attribute setter is called with no arguments · whatwg/webidl@909c3fe
arai-a
·
2025-07-22
·
via Recent Commits to webidl:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12265,8 +12265,8 @@ in which case they are exposed on every object that [=implements=] the interface
|
12265 | 12265 | <emu-val>undefined</emu-val>; there is no [=attribute setter=] function. |
12266 | 12266 | 1. Assert: |attribute|'s type is not a [=promise type=]. |
12267 | 12267 | 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. |
12270 | 12270 | 1. Let |id| be |attribute|'s [=identifier=]. |
12271 | 12271 | 1. Let |idlObject| be null. |
12272 | 12272 | 1. If |attribute| is a [=regular attribute=]: |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。