WebSocket::send_with_u8_array
is broken with atomics, bulk-memory
WASM features /SharedArrayBuffer WASM memory
#4101
Labels
Describe the Bug
When using the Atomics and Bulk Memory WASM features (
SharedArrayBuffer
WASM memory)WebSocket::send_with_u8_array
throws an error from wasm-bindgen code. This can be worked around with a sed to create aUint8Array
from the WASM array, but that's obviously not clean.Workaround example
Edit: This seems similar to #3772.
Steps to Reproduce
Run
build.sh
andserve.py
in this repository and put a WebSocket server onlocalhost:4000
: https://github.com/r58Playz/wasm-bindgen-ws-bugExpected Behavior
WebSocket::send_with_u8_array
should function properly.Actual Behavior
This error:
Chrome:
Firefox:
WebKit:
Additional Context
None
The text was updated successfully, but these errors were encountered: