Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConvertToInt should take an explicit argument for its conversion approach #1439

Open
Ms2ger opened this issue Oct 3, 2024 · 0 comments
Open

Comments

@Ms2ger
Copy link
Member

Ms2ger commented Oct 3, 2024

What is the issue with the Web IDL Standard?

Currently, there's prose like

If the conversion is to an IDL type associated with the [EnforceRange] 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 WebAssembly/memory64#86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant