summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testGlobalOptimize-5.js
blob: e0a3aecc2e30bbcda8927d05f5d64ce06ea0fe46 (plain)
1
2
3
4
5
6
7
8
9
10
11
var test;
function f() {
  {
    let a = 5;
    with ({a: 2}) {
      test = (function () { return a;} )();
    }
  }
}
f();
assertEq(test, 2);