Just to add to this - while I don't seem to be able to reproduce on embedded, by dialling the available memory right down I can make it happen on the Linux build.
It's allocateJsFile that fails, so it's as I thought - it couldn't allocate a big enough flat string buffer for the data.
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.
Just to add to this - while I don't seem to be able to reproduce on embedded, by dialling the available memory right down I can make it happen on the Linux build.
It's
allocateJsFile
that fails, so it's as I thought - it couldn't allocate a big enough flat string buffer for the data.