summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug820873.js
blob: d50e1b19bb06054369fa9cd5bb5345f88ad0bf02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var lfcode = new Array();
lfcode.push("3");
lfcode.push("with(evalcx('')) this.__defineGetter__('x', Function);");
lfcode.push("gczeal(2)");
lfcode.push("4");
lfcode.push("\
	var log = '';\
	for (var { m  } = i = 0 ;  ; i++) {\
		log += x; \
		if (x === 6)\
			a.slow = true; if (i > 1000) break;\
	}\
");
while (true) {
	var file = lfcode.shift(); if (file == undefined) { break; }
        loadFile(file)
}
function loadFile(lfVarx) {
	if (!isNaN(lfVarx)) {
            lfRunTypeId = parseInt(lfVarx);
        } else {
            switch (lfRunTypeId) {
                case 3: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break;
                case 4: eval("(function() { " + lfVarx + " })();"); break;
	}
    }
}