Yes, updating the docs to make it more explicit would be handy!
I'd try a really minimal example and see if that works, and then work up to what you have. Hopefully it'll be easier to figure out whether it is an Espruino issue or something in your code
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.
Yes, updating the docs to make it more explicit would be handy!
I'd try a really minimal example and see if that works, and then work up to what you have. Hopefully it'll be easier to figure out whether it is an Espruino issue or something in your code