On a Pico, v1.91, Creating an empty array with new Float32Array([]) or Float64Array([]) hangs up Espruino.
Passing "0" as argument has the same effect.
Passing a not empty array as argument works as expected: new Float32Array([1]). Creating other arrays of size 0 (Uint8 etc.) also works.
Is this a (small) bug?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
On a Pico, v1.91, Creating an empty array with
new Float32Array([])
orFloat64Array([])
hangs up Espruino.Passing "0" as argument has the same effect.
Passing a not empty array as argument works as expected:
new Float32Array([1])
. Creating other arrays of size 0 (Uint8 etc.) also works.Is this a (small) bug?