summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testRopeMarking.js
blob: fcf53114168f8ab604a44a63e8b65886e4a0601d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
for (var i = 0; i < 10; ++i) {
    var arr = [];
    var s = "abcdefghijklmnop";
    for (var j = 0; j < 5000; ++j) {
        s = "<" + s + ">";
        arr.push(s);
    }
    gc();
    for (var j = 0; j < 5000; ++j) {
        arr[j].search("a");
    }
    gc();
}