summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/polymorphic-getelem.js
blob: 95672c7ca77929a2b33df7602b1741546119bad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function foo(s) {
    return arguments[s];
}

for (var i = 0; i < 100; i++) {
    assertEq(foo("callee"), foo);
}

for (var i = 0; i < 100; i++) {
    assertEq(foo("length"), 1);
}

for (var i = 0; i < 100; i++) {
    assertEq(foo(0), 0);
}