bug-1751660.js (421B)
1 function foo() {} 2 3 function bar(o) { 4 function nested() { 5 with (o) { 6 return Object(...arguments); 7 } 8 } 9 10 // We need an arbitrary IC before the OSR loop. 11 foo(); 12 13 // Trigger on-stack-replacement. 14 for(let i = 0; i < 100; i++) {} 15 16 // Make the call. 17 return nested(); 18 } 19 20 // Trigger OSR compilation. 21 for (var i = 0; i < 5; i++) { 22 bar({}); 23 } 24 25 // Call passing in the function itself. 26 print(bar(bar));