Skip to content

Fix asyncify.js test on big-endian - #9080

Open
sertonix wants to merge 1 commit into
WebAssembly:mainfrom
sertonix:asyncify.js-be
Open

Fix asyncify.js test on big-endian#9080
sertonix wants to merge 1 commit into
WebAssembly:mainfrom
sertonix:asyncify.js-be

Conversation

@sertonix

@sertonix sertonix commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Int32Array in javascript use native-endianess but wasm memory is always little-endian. As recommended on MDN this can be fixed by using DataView: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView#endianness

(Same issue exists in other places but is more difficult to fix there)

Ref #2983 (comment)

Int32Array in javascript use native-endianess but wasm memory is always
little-endian. As recommended on MDN this can be fixed by using DataView:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView#endianness

Ref WebAssembly#2983 (comment)
@sertonix
sertonix requested a review from a team as a code owner September 6, 2026 13:01
@sertonix
sertonix requested review from aheejin and removed request for a team September 6, 2026 13:01
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.

1 participant