- From: Nicolò Ribaudo <notifications@github.com>
- Date: Fri, 21 Aug 2026 09:26:53 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 21 August 2026 16:26:57 UTC
nicolo-ribaudo left a comment (whatwg/webidl#1629) > I wonder what JavaScript APIs typically do We actually just introduced this AO that deals with ranges, and it has a parameter to decide if it needs to throw or to clamp: https://tc39.es/ecma262/#sec-snaptointeger All of its current usages truncate, but Temporal (which has a lot of APIs that take a number from a specific range) is going to make new ones throw. We don't have however an agreed upon behavior to follow in general. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/issues/1629#issuecomment-5372504865 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/issues/1629/5372504865@github.com>
Received on Friday, 21 August 2026 16:26:57 UTC