summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1246552.js
blob: 3a4aa7c8b0b317c5853065d8a28cc43f6ad87c69 (plain)
1
2
3
4
5
6
7
8
9
10
11

var t = 0;
var y = [];
y.toString = (function() { t += 1 });
function test() {
    for (var i = 0; i < 14; i++) {
        String.prototype.sup.call(y);
    }
}
test();
assertEq(t, 14);