summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug911369.js
blob: 90240b29cb520374bd497e752ec82b3a0985e643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var a = [];
var count = 0;
a.valueOf = function() {
    ++count;
}
function f(a) {
    6 - a;
}

f(3);
for (var i=0; i<10; i++)
    f(a);

assertEq(count, 10);