summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/array-join-bug1137624-2.js
blob: affceb37e702255a608fa7dbeed2d7267fca66a3 (plain)
1
2
3
4
5
6
7
8
9
function f() {
    var x = 0;
    var a = [{toString: () => x++}];
    for (var i=0; i<10000; i++)
	a.join("");
    assertEq(x, 10000);
}
f();