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

WebSocket.send_with_u8_array should accept an immutable byte slice #2014

Closed
chinedufn opened this issue Feb 26, 2020 · 2 comments · Fixed by #2015
Closed

WebSocket.send_with_u8_array should accept an immutable byte slice #2014

chinedufn opened this issue Feb 26, 2020 · 2 comments · Fixed by #2015
Labels

Comments

@chinedufn
Copy link
Contributor

Currently requires &mut [u8]

https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.WebSocket.html#method.send_with_u8_array

@chinedufn chinedufn added the bug label Feb 26, 2020
@alexcrichton
Copy link
Contributor

Sounds good to fix! I think we'll just need to update our whitelist

chinedufn added a commit to chinedufn/wasm-bindgen that referenced this issue Feb 27, 2020
@chinedufn
Copy link
Contributor Author

Thanks!

alexcrichton pushed a commit that referenced this issue Mar 2, 2020
* Whitelist send_with_u8_array slice

Fixes #2014

* Fix send slice

* Remove chromedriver comment

* Get slice tests running in CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants