One more test.
This time the SHA1 was copied to flash without function body.
All variables have been set to undefined at the end of source.
2 more global variables are defined, one for input data, one for the result.
sent to board with minification free:1330
checked memory some seconds later free:1347
called test function free:1286, duration 500ms
checked memory some seconds later free:1292
called test function several times, no change in free memory
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.
One more test.
This time the SHA1 was copied to flash without function body.
All variables have been set to undefined at the end of source.
2 more global variables are defined, one for input data, one for the result.