You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.setFlags({pretokenise:1})
//E.setFlags({pretokenise:0}) // this fixes it
function go() {
Promise.resolve().then(function() {
console.log("Ok");
}).catch(function(e) {
console.log("ERROR",e);
});
}
go()
// Uncaught Error: Function "" not found!
http://forum.espruino.com/conversations/349928/#comment15371590
http://forum.espruino.com/conversations/349399/
So it's to do with
catch
being converted to a token even though in this case it's just a function name.Easiest is just to make the EspruinoTools not tokenise 'catch' - but it's worth investigating to see if it's a deeper problem with pretokenisation
The text was updated successfully, but these errors were encountered: