Array itself is not a valid type because it requires one generic parameter. I replaced it with number[]. I chose number as the element type, because that's what the surrounding code is using for everything.
Using number for everything is probably wrong, since WASM uses bigint for 64-bit ints AFAIK, but it shouldn't matter too much.
CI fails because CI uses the latest stable compiler (Rust 1.82 now), which uses multi-value returns by default. This means that the generated WASM and JS code will be different in all tests now.
fixes #4207
Array
itself is not a valid type because it requires one generic parameter. I replaced it withnumber[]
. I chosenumber
as the element type, because that's what the surrounding code is using for everything.Using
number
for everything is probably wrong, since WASM usesbigint
for 64-bit ints AFAIK, but it shouldn't matter too much.