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