[whatwg/webidl] ConvertToInt should take an explicit argument for its conversion approach (Issue #1439)

### What is the issue with the Web IDL Standard?

Currently, there's prose like

> If the conversion is to an IDL type [associated with](https://webidl.spec.whatwg.org/#idl-type-extended-attribute-associated-with) the [[EnforceRange](https://webidl.spec.whatwg.org/#EnforceRange)] [extended attribute](https://webidl.spec.whatwg.org/#dfn-extended-attribute), then:

which couples it too tightly to its callers. It would be better if its callers, which actually have an IDL type on hand, pass an argument to choose how to handle out-of-range values.

Noticed in review of https://github.com/WebAssembly/memory64/pull/86

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

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

Received on Thursday, 3 October 2024 10:02:51 UTC