Strange about jspNewObject - I wonder whether that does cause an extra reference to get created somehow as you say?
I guess it's possible that on normal Espruino boards this doesn't get hit (often) because the reference count is 16 bit. If that's the case then recompiling on Linux with 1000 vars (as suggested above) might let you reproduce it. I'll give it a try.
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.
Strange about
jspNewObject
- I wonder whether that does cause an extra reference to get created somehow as you say?I guess it's possible that on normal Espruino boards this doesn't get hit (often) because the reference count is 16 bit. If that's the case then recompiling on Linux with 1000 vars (as suggested above) might let you reproduce it. I'll give it a try.