- From: Martin Thomson <notifications@github.com>
- Date: Mon, 03 Aug 2026 22:40:56 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 4 August 2026 05:41:00 UTC
@martinthomson commented on this pull request. > + <li><p>If <var>jsValue</var> is an + <a href="https://tc39.es/ecma262/#sec-isinteger">integral number</a>, + return a <a>structured field integer</a> with <var>jsValue</var>'s value. + + <li><p>Otherwise, return a <a>structured field decimal</a> with + <var>jsValue</var>'s value. Is that because 6e110 doesn't fit in a double? I'm thinking of those cases where the range of permissible values in a JS Number is outside the range of permissible SF integers. What then? Translate, and let the application enjoy the (possible) surprise (possible because there is nothing preventing an implementation from accepting more than the minimal range). You need this to be explicit in the algorithm. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1943#discussion_r3709753054 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1943/review/4850993728@github.com>
Received on Tuesday, 4 August 2026 05:41:00 UTC