Skip to content

Don't use EnforceRange types for flags consts on interfaces - #928

Merged
kainino0x merged 3 commits into
gpuweb:mainfrom
kainino0x:flags-no-enforcerange
Aug 18, 2020
Merged

kainino0x merged 3 commits into
gpuweb:mainfrom
kainino0x:flags-no-enforcerange

Conversation

@kainino0x

@kainino0x kainino0x commented Jul 16, 2020 •

Copy link
Copy Markdown
Contributor

This is an "output" field, where (at least in principle), EnforceRange is not allowed.

While I don't think WebIDL ever officially added this requirement, it is almost certainly supposed to be there. And apparently Chromium's IDL generators enforce it.

Issue: #549


Preview | Diff

This is an "output" field, where (at least in principle), EnforceRange
is not allowed.

Issue: gpuweb#549
Comment thread spec/index.bs Resolved
@kainino0x kainino0x self-assigned this Jul 17, 2020
@kainino0x kainino0x removed their assignment Jul 20, 2020
@kainino0x

Copy link
Copy Markdown
Contributor Author

Editors' meeting (+@litherum): this change is only really needed if the upstream WebIDL issue resolves to disallow [EnforceRange] on consts. We should get it resolved upstream in whatwg/webidl#842

@kainino0x

Copy link
Copy Markdown
Contributor Author

Consider it resolved!

-- whatwg/webidl#842 (comment)

So we should go ahead with a change here.

@kainino0x
kainino0x marked this pull request as ready for review August 3, 2020 21:52
@kainino0x

Copy link
Copy Markdown
Contributor Author

Just going to land this and we can make more changes later if we want to.

@kainino0x
kainino0x merged commit 717684f into gpuweb:main Aug 18, 2020
@kainino0x
kainino0x deleted the flags-no-enforcerange branch August 18, 2020 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants