BTW @Tx thanks for you reply, but arrow functions are not the cause. They work fine in all other scenarios, and I tried to replace them with anonymous functions, but this didn't solve the issue (when there was a issue).
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.
BTW @Tx thanks for you reply, but arrow functions are not the cause. They work fine in all other scenarios, and I tried to replace them with anonymous functions, but this didn't solve the issue (when there was a issue).