- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 02 Jul 2025 18:21:30 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 3 July 2025 01:21:35 UTC
@domenic 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.
Nit: it's not great to scope a "let" inside if/otherwise blocks. Prefer this style:
> 1. Let V be undefined.
> 2. If any arguments were passed, then set V to the value of the first argument passed.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1498#pullrequestreview-2981142261
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/webidl/pull/1498/review/2981142261@github.com>
Received on Thursday, 3 July 2025 01:21:35 UTC