summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testClosureIncrSideExit.js
blob: 04251e3f364a3c5ad1a8a533cb82b25f647abe23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function testClosureIncrSideExit() {
    {
      let f = function (y) {
        {
          let ff = function (g) {
            for each(let h in g) {
                if (++y > 5) {
                    return 'ddd';
                }
            }
            return 'qqq';
        };
            return ff(['', null, '', false, '', '', null]);
        }
      };
        return f(-1);
    }
}
assertEq(testClosureIncrSideExit(), "ddd");