Your code looks fine to me. I just checked it out here and I have exactly the same problem, on both boards.
Sorry about that - I have absolutely no idea how this got missed (it seems to have been like it for a few versions). I think it's because I'd been testing with things similar to:
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.
Hi Stevie,
Your code looks fine to me. I just checked it out here and I have exactly the same problem, on both boards.
Sorry about that - I have absolutely no idea how this got missed (it seems to have been like it for a few versions). I think it's because I'd been testing with things similar to:
Which don't set a timeout from within an interval.
I'll try and get this fixed today and will push out a release.