blob: 64407246154ca54df7dc5de057bda15caa81e1fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
var o = {x:42};
function f(index,param) {
arguments[1] = 0;
var ret = 0;
for (var i = 0; i < 5; ++i)
ret = arguments[index].x;
return ret;
}
assertEq(f(2,o,o), 42);
assertEq(f(1,o,o), undefined);
|