Ok, great! Narrowed it down to:
//E.setFlags({pretokenise:0}) // this fixes it function go() { Promise.resolve().then(function() { console.log("Ok"); }).catch(function(e) { console.log("ERROR",e); }); } go()
So it's to do with catch being converted to a token even though in this case it's just a function name. Just filed an issue: https://github.com/espruino/Espruino/issues/1868
catch
@Gordon started
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.
Ok, great! Narrowed it down to:
So it's to do with
catch
being converted to a token even though in this case it's just a function name. Just filed an issue: https://github.com/espruino/Espruino/issues/1868