Or try removing bluetooth, if you don't use it. The buffer allocated to bluetooth is roughly 2000jsVars, so a pretty big one.
Or, maybe just calling ESP32.enableBLE(false) frees up some heap as well. But this is just a guess...
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.
Or try removing bluetooth, if you don't use it. The buffer allocated to bluetooth is roughly 2000jsVars, so a pretty big one.
Or, maybe just calling
ESP32.enableBLE(false)
frees up some heap as well. But this is just a guess...