I'm not sure we're really on the same wavelength here - please can you read my last 2 posts? It isn't possible to do what you want, the spec forbids it.
The issue here was Espruino not throwing an error to tell you that, but I just fixed it so latest builds will now throw an exception (and the limitation is now documented).
But please - if you have issues in the future, can you just take a few minutes to try and get down to a reasonably minimal bit of code that has the problem.
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.
I'm not sure we're really on the same wavelength here - please can you read my last 2 posts? It isn't possible to do what you want, the spec forbids it.
The issue here was Espruino not throwing an error to tell you that, but I just fixed it so latest builds will now throw an exception (and the limitation is now documented).
But please - if you have issues in the future, can you just take a few minutes to try and get down to a reasonably minimal bit of code that has the problem.
It means I can fix the issue far more quickly.