I think I was wrong to write this off - while the Uncaught undefined itself is ok, I just flashed a version onto a device and did a Factory Reset, and I found it happened when loading every new app. Was this what you were seeing?
I believe the issue has been that the pretokeniser was pretokenising empty strings when it shouldn't have, and this caused an error - which wasn't reported properly because it was inside bootupdate.js. Once you update bootupdate.js manually it's fixed.
It seems the alarm app may have been broken by default anyway. I've just fixed the ide and the app loader, as well as the factory update image in cutting edge builds. Luckily I'm not sure how but it seems that 2v21 (including the factory image) escaped ok
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 think I was wrong to write this off - while the
Uncaught undefined
itself is ok, I just flashed a version onto a device and did a Factory Reset, and I found it happened when loading every new app. Was this what you were seeing?I believe the issue has been that the pretokeniser was pretokenising empty strings when it shouldn't have, and this caused an error - which wasn't reported properly because it was inside
bootupdate.js
. Once you updatebootupdate.js
manually it's fixed.It seems the alarm app may have been broken by default anyway. I've just fixed the ide and the app loader, as well as the factory update image in cutting edge builds. Luckily I'm not sure how but it seems that 2v21 (including the factory image) escaped ok