and it works absolutely fine, so I feel like there's something else going on... Any chance you could try taking stuff out of your code until you're left with a minimal example that always exhibits the problem? Then I can reproduce here and get a fix in.
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.
Hmm, I just ran this on an MDBT42Q:
and it works absolutely fine, so I feel like there's something else going on... Any chance you could try taking stuff out of your code until you're left with a minimal example that always exhibits the problem? Then I can reproduce here and get a fix in.