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 is broken with atomics, bulk-memory WASM features /SharedArrayBuffer WASM memory #4101

Closed
r58Playz opened this issue Sep 4, 2024 · 1 comment
Labels

Comments

@r58Playz
Copy link

r58Playz commented Sep 4, 2024

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 a Uint8Array from the WASM array, but that's obviously not clean.

Workaround example

Edit: This seems similar to #3772.

Steps to Reproduce

Run build.sh and serve.py in this repository and put a WebSocket server on localhost:4000: https://github.com/r58Playz/wasm-bindgen-ws-bug

Expected Behavior

WebSocket::send_with_u8_array should function properly.

Actual Behavior

This error:

Chrome:
Chrome error

Firefox:
Firefox error

WebKit:
image

Additional Context

None

@r58Playz r58Playz added the bug label Sep 4, 2024
@daxpedda
Copy link
Collaborator

daxpedda commented Sep 7, 2024

Duplicate of #3772.
I put it in my backlog, so hopefully I will get to it soon.

@daxpedda daxpedda closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants