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

Fixup MessageEvent.data regression #1157

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Sep 10, 2023

MessageEvent.data should be an ArrayBuffer if the data is bytes. The recent JsValue conversion accidentally changed it to Uint8Array.

@jasnell jasnell force-pushed the jsnell/fixup-websocket-messageevent-data branch from 463d741 to 8d80fc6 Compare September 10, 2023 15:49
src/workerd/jsg/jsg.h Show resolved Hide resolved
MessageEvent.data should be an `ArrayBuffer` if the data is bytes.
The recent JsValue conversion accidentally changed it to `Uint8Array`.
@jasnell jasnell force-pushed the jsnell/fixup-websocket-messageevent-data branch from 8d80fc6 to 59dd148 Compare September 11, 2023 16:27
@jasnell jasnell merged commit 4acdac4 into main Sep 11, 2023
@jasnell jasnell deleted the jsnell/fixup-websocket-messageevent-data branch September 11, 2023 16:53
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.

3 participants