To reproduce it, you need to:
fs = require("Storage");
fs.erase("aName");
fs.write("aName", thatString);
(3). Code in .boot0:
if(fs.getFree()<4096) fs.compact();
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.
Well this is no code to reproduce the error.