1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// make sure AddV instruction is monitoring the output type when 'f' is inlined // into the loop of 'g' var x = {}; var y = []; function f(i) { return x + y; } function g(m) { var i; for (i = 0; i < m; i++) { f(i); } } g(101);