js/src/jit-test/tests/xdr/scope.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:013f0721fa13
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.toSource() + "; f()";
18 })();
19 evalWithCache(test, { assertEqBytecode: true, assertEqResult : true });

mercurial