Re: [whatwg/webidl] Intent use number / bigint union type (Issue #1426)

FYI, we ended up reverting this in https://github.com/WebAssembly/memory64/pull/86 because the special [conversion rules](https://webidl.spec.whatwg.org/#js-bigint) for a union of numeric type and bigint would, through [ToNumeric](https://tc39.es/ecma262/multipage/abstract-operations.html#sec-tonumeric)/[ToNumber](https://tc39.es/ecma262/multipage/abstract-operations.html#sec-tonumber), force all string and boolean values to be interpreted as Number instead of BigInt. This is a very confusing special case.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1426#issuecomment-2392215553
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1426/2392215553@github.com>

Received on Thursday, 3 October 2024 19:55:02 UTC