I just looked into this and it appears to be some issue with ArrayBuffers where the element size is >1 byte - so normal Uint8Array works (probably why it got through testing). For ~40 elements you could use a normal array for now, but hopefully I'll be able to get this fixed quite soon.
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.
I just looked into this and it appears to be some issue with ArrayBuffers where the element size is >1 byte - so normal Uint8Array works (probably why it got through testing). For ~40 elements you could use a normal array for now, but hopefully I'll be able to get this fixed quite soon.