wit-bindgen icon indicating copy to clipboard operation
wit-bindgen copied to clipboard

JS host generator uses native endianness when copying "canonical" lists

Open alexcrichton opened this issue 4 years ago • 0 comments

Currently it just uses slices of the underlying array buffer and doesn't attempt to swap endianness, which means that little-endian integers from wasm will be exposed as native-endian integers in JS, which means that on big-endian this will all be backwards.

alexcrichton avatar Jul 26 '21 14:07 alexcrichton