Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 load(libdir + 'bytecode-cache.js');
2 var test = "";
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 };
17 return "var obj = { x : 2 };" + f.toSource() + "; f()";
18 })();
19 evalWithCache(test, { assertEqBytecode: true, assertEqResult : true });