summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testPutOnEmptyArgsObject.js
blob: b230897857eff91e4aa60073f737568324361f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var g;

function h() {
    return arguments.length;
}

function f() {
    var args = arguments;
    g = function() { return h.apply(this, args); }
}

for (var i = 0; i < 10; ++i) {
    f();
}

assertEq(g(), 0);