This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28834 - Clarify whether and how [EnforceRange] applies to union types
Summary: Clarify whether and how [EnforceRange] applies to union types
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
Depends on:
Reported: 2015-06-21 14:38 UTC by Jeffrey Yasskin
Modified: 2017-03-31 12:18 UTC (History)
6 users (show)

See Also:


Description Jeffrey Yasskin 2015-06-21 14:38:55 UTC
The Web Bluetooth spec has some union types containing unsigned longs that we may want to apply [EnforceRange] to:

However, the [EnforceRange] documentation does not include union types in the set of things it can apply to:

It would be most convenient for Web Bluetooth if we could put [EnforceRange] directly into the union types and typedefs where it's needed, but we could explicitly put it on the operations that take values of these types.
Comment 2 Anne 2016-09-27 17:58:56 UTC
And also
Comment 3 Dominique Hazael-Massieux 2017-03-21 16:53:33 UTC
See a proposed fix to this in