inline-arguments-oob-index.js (268B)
1 // |jit-test| --fast-warmup 2 3 function f(index, expected) { 4 function g(index) { 5 return arguments[index]; 6 } 7 assertEq(g(index), expected); 8 } 9 10 // Don't inline |f| into top-level script. 11 with ({}); 12 13 for (var i = 0; i < 100; ++i) { 14 f(0, 0); 15 f(1, undefined); 16 }