summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug535760.js
blob: dd00b961522c902d0924734e10fe932a05fbc323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* vim: set ts=8 sts=4 et sw=4 tw=99: */
function foundit(items, n) {
    for (var i = 0; i < 10; i++)
        arguments[2](items, this);
}

function dostuff() {
    print(this);
}
foundit('crab', 'crab', dostuff);

/* Don't crash or assert */