function-var-environment-inlined.js (303B)
1 function defaultValue() { return 3; } 2 3 function testCallee(p = defaultValue()) { 4 var q = p + 1; 5 return () => q + p; 6 } 7 function test() { 8 var res = 0; 9 for (var i = 0; i < 2000; i++) { 10 res += testCallee()(); 11 res += testCallee(1)(); 12 } 13 assertEq(res, 20000); 14 } 15 test();