Thanks - I just tried this, and it seems to be a bug in the firmware.
It seems you can work around it by changing USB.setConsole(); to try { USB.setConsole(); } catch(e) {}. However I have just fixed it so it'll be in the 'cutting edge' builds, or 1v97
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.
Thanks - I just tried this, and it seems to be a bug in the firmware.
It seems you can work around it by changing
USB.setConsole();
totry { USB.setConsole(); } catch(e) {}
. However I have just fixed it so it'll be in the 'cutting edge' builds, or1v97