scope.js (432B)
1 load(libdir + 'bytecode-cache.js'); 2 var test = ""; 3 4 // code a function which has both used and unused inner functions. 5 test = (function () { 6 function f() { 7 var x = 3; 8 (function() { 9 with(obj) { 10 (function() { 11 assertEq(x, 2); 12 })(); 13 } 14 })(); 15 }; 16 17 return "var obj = { x : 2 };" + f.toString() + "; f()"; 18 })(); 19 evalWithCache(test, { assertEqBytecode: true, assertEqResult : true });