summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testFewerGlobalsInInnerTree.js
blob: 25a4a52ef4eff0d50a2459e893868d2da10aaf97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function testFewerGlobalsInInnerTree() {
    for each (a in [new Number(1), new Number(1), {}, {}, new Number(1)]) {
        for each (b in [2, "", 2, "", "", ""]) {
		    for each (c in [{}, {}, 3, 3, 3, 3, {}, {}]) {
                4 + a;
			}
		}
	}
    delete a;
    delete b;
    delete c;
    return "ok";
}
assertEq(testFewerGlobalsInInnerTree(), "ok");