var A="1234567890";
var B = A;
console.log(B.length,process.memory());
B+=A;
console.log(B.length,process.memory());
B+=A;
console.log(B.length,process.memory());
Looks like a problem with iterating through a string that is changed during iteration.
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.
This works
Looks like a problem with iterating through a string that is changed during iteration.