That's actually a really strange one. Module.addCached shouldn't break with that at all as it parses everything as one string. Did you use the Web IDE for the module, or were you passing the code to addCached like in your other post?
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.
That's actually a really strange one.
Module.addCached
shouldn't break with that at all as it parses everything as one string. Did you use the Web IDE for the module, or were you passing the code toaddCached
like in your other post?I've made a bug for it here: https://github.com/espruino/EspruinoWebIDE/issues/111