Looks like there's a problem when a rejected promise is returned inside a promise.
new Promise((x,y)=>x()).then(dev=>{ return new Promise((x,y)=>y("Uh-oh")); }).then(s=>{ console.log("ok", s); }).catch(e=>{ console.log("error", e); });
Sorry about that - I'm really surprised that one slipped through.
@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.
Looks like there's a problem when a rejected promise is returned inside a promise.
Sorry about that - I'm really surprised that one slipped through.