Hi - thanks for stripping that back! I can reproduce here. It seems to all fall apart right after var initCmds = new Uint8Array([....
I've just looked into this and it was a problem with how ArrayBuffers were handled when using the very compact memory layout that ESP8266 uses with 12 byte vars. I believe I've fixed it now if you use a cutting edge build
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.
Hi - thanks for stripping that back! I can reproduce here. It seems to all fall apart right after
var initCmds = new Uint8Array([...
.I've just looked into this and it was a problem with how ArrayBuffers were handled when using the very compact memory layout that ESP8266 uses with 12 byte vars. I believe I've fixed it now if you use a cutting edge build