summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/baseline/bug840984.js
blob: 410c3a8a4d7cb5b01a6e20e148eb47ff0befb768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function foo() {
    x = null;
}
function f() {
    for (var i=0; i<99; i++) {
	x = null;
	if (i >= 97) {
	    gc();
	    gc();
	    foo();
	}
	x = {};
	if (i >= 97)
	    foo();
    }
}
f();