espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.73k stars 741 forks source link

Typed arrays are broken #2463

Closed RaphiSpoerri closed 5 months ago

RaphiSpoerri commented 5 months ago

Typed arrays seem buggy with the new update (2v21.6). For example:

console.log(new Uint8Array([1, 2, 3]));

prints

>new Uint8Array(3)
gfwilliams commented 5 months ago

What platform are you on? I just tried on the linux build and an Bangle.js and it appears fine on those.

All I can see that has trouble is the Emulator? It seems maybe there's some issue with the Emscripten build there - I'll roll that back for now

gfwilliams commented 5 months ago

edit: just rolled back to 2v20 and same problem! I'll have to debug this tomorrow.

gfwilliams commented 5 months ago

Just fixed if you refresh the IDE now - that was a total nightmare to track down