Also, try adding: global["\xFF"].history=[];
It's a hack but it removes the command history - something that could have been using memory that would have stopped you saving.
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.
AFAIK, some bytes are still occupied holding the (command) history for the Web IDE.
Source: http://forum.espruino.com/comments/12713514/
Also, try adding: global["\xFF"].history=[];
It's a hack but it removes the command history - something that could have been using memory that would have stopped you saving.