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