• This works

    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.

About

Avatar for JumJum @JumJum started