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

Add dataview attribute output to WebIDL Codegen #2316

Merged
merged 2 commits into from
Sep 22, 2020

Conversation

qdot
Copy link
Contributor

@qdot qdot commented Sep 20, 2020

WebBluetooth and some other specs use DataView as an attribute type. Tested against my project using WebBluetooth, seems to work fine (Wrapped resulting buffer in UInt8Array to go to &[u8], everything seems to work). Not sure if there were other tests I need to add here.

Some WebIDL specs (WebBluetooth, WebUSB, etc) use DataView as an
attribute type. These attributes should map to a js_sys::DataView type.

Fixes rustwasm#2312
WebBluetooth has a couple DataView attrs that are required for
certain core functionality. These were not being generated when the
original patch was landed, but after the DataView fix, they now show
up.
@alexcrichton alexcrichton merged commit 28d4575 into rustwasm:master Sep 22, 2020
@alexcrichton
Copy link
Contributor

Thanks!

@hajifkd hajifkd mentioned this pull request Nov 6, 2020
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