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