bug1001378.js (331B)
1 // Test that we don't incorrectly optimize out argument slots from resume 2 // points. 3 4 function boo() { 5 return foo.arguments[0]; 6 } 7 function foo(a,b,c) { 8 if (a == 0) { 9 a ^= ""; 10 return boo(); 11 } 12 } 13 function inlined() { 14 return foo.apply({}, arguments); 15 } 16 assertEq(inlined(1,2,3), undefined); 17 assertEq(inlined(0,2,3), 0);