@Drarok - which Espruino version are you running ?
your code works fine on puck.js with 1v89.
_____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |_____|___| _|_| |___|_|_|_|___| |_| http://espruino.com 1v89 Copyright 2016 G.Williams >Promise test p1 p2 done >
@MaBe 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.
@Drarok - which Espruino version are you running ?
your code works fine on puck.js with 1v89.