Skip to content

GPUDeviceDescriptor IDL includes invalid default value for requiredLimits member #5529

@weinig

Description

@weinig

The IDL for GPUDeviceDescriptor includes an invalid default value for requiredLimits member. It specifies the default value for requiredLimits to be {}, however, {} is only valid for "dictionary type, or a union type that has a dictionary type in its flattened member types" (https://webidl.spec.whatwg.org).

As far as I can tell, there is unfortunately no way to specify a default value for an optional record in an IDL dictionary, and would probably have to be specified in prose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU APIbugcopyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions