summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug524826.js
blob: 225c3591fa76ba11038e699af61e2e4bb68205a9 (plain)
1
2
3
4
5
6
7
8
9
10
var x = 42;
function f() {
    var a = [new Date, new Date, new Date, new Date, new Date];
    for (var i = 0; i < 5; i++)
        a[i].m = function () {return x};
    for (i = 0; i < 4; i++)
        if (a[i].m == a[i+1].m)
            throw "FAIL!";
}
f();