Ahh - I just tried this, and it does appear to be a bug in Espruino.
I believe it happens when you use clearInterval() (with no arguments) and debounce in a watch, as debounced watches use setTimeout behind the scenes. I'll get a fix in for this.
In the mean time, you can work around it by only clearing the interval you want:
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.
Ahh - I just tried this, and it does appear to be a bug in Espruino.
I believe it happens when you use
clearInterval()
(with no arguments) anddebounce
in a watch, as debounced watches usesetTimeout
behind the scenes. I'll get a fix in for this.In the mean time, you can work around it by only clearing the interval you want: