blob: 7b262b9b67553e00eb298ea656c69d4c7c52c2c0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
if (typeof schedulegc != 'undefined')
schedulegc(11);
function foo(n) {
if (n == 10)
foo.apply = function(a, b) { return b[0]; }
return n;
}
function bar() { return foo.apply(null, arguments); }
for (var i = 0; i < 20; i++)
assertEq(bar(i), i);
|