summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testReplace2.js
blob: 20685adf2aade96b08ba8240b2d0031216035c69 (plain)
1
2
3
4
5
6
7
function testReplace2() {
    var s = "H e l l o", s1;
    for (i = 0; i < 100; ++i)
        s1 = s.replace(" ", "");
    return s1;
}
assertEq(testReplace2(), "He l l o");