But you don't get an error now? Can you try updating the firmware to 1v92 just in case?
I just tried that exact code here (the original code and my suggested change) with a Wifi board running 1v93 and both of them are working perfectly for me, so at the moment that's the only difference I can think of.
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.
But you don't get an error now? Can you try updating the firmware to 1v92 just in case?
I just tried that exact code here (the original code and my suggested change) with a Wifi board running 1v93 and both of them are working perfectly for me, so at the moment that's the only difference I can think of.