Skip to content

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

Open
@Ms2ger

Description

@Ms2ger

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions