summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1701208.js
blob: 184c8dbf24b95d78113e1ad054bc93a282a3c362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| --fast-warmup; --no-threads

function dummy() { with ({}) {} }

function foo() {
    dummy();
    var x = [];
    var y = [];
    for (var i = 0; i < 10; i++) { }
    for (var i = 0; i < 100; i++) {
	var swap = x;
	x = y;
	y = swap;
    }
    return x;
}

foo();