3 ms·
JS doesn't have integer, but its Number is really just a double, which has a 52 bit mantissa, meaning it can hold any 8, 16 or 32 bit integer. Only 64 bit integ
by echeese 9y ago
JS doesn't have integer, but its Number is really just a double, which has a 52 bit mantissa, meaning it can hold any 8, 16 or 32 bit integer. Only 64 bit integers are unable to be stored in a double, which is why the WASM->JS interface doesn't allow them.