I have narrowed down what is triggering the low memory (when run from RAM). I have the following class which is basically shifting the queue if push item and over max size:
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 have narrowed down what is triggering the low memory (when run from RAM). I have the following class which is basically shifting the queue if push item and over max size:
If I initiate 2 or more of these like this:
...the memory bottoms out. Which is curious as even if I comment out the initialisation of the array it still bottoms out.
The actual non minified compiled typescript looks as follows:
I am wondering if the get overrides (such as below)
which result in Class.prototype stuff is the cause but need to test more.