summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug630064.js
blob: aab4885cc544be7e459bb2dbc94cc3e12f2a3746 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var BUGNUMBER = '';
function printBugNumber (num)
{
	return "foo";
}
function optionsClear() {
  var x = printBugNumber().split(',');
}
function optionsReset() {
    optionsClear();
}
var code = new Array();
code.push("evaluate");
var x0 = "\
    printBugNumber(BUGNUMBER);\n\
    function gen()\n\
    {\n\
      try {\n\
        yield 0;\n\
      } finally {\n\
      }\n\
    }\n\
    var iter1 = gen( iter1=\"NaN\", new gen(gen)) ;\n\
    gc();\n\
";
code.push(x0);
code.push("evaluate");
var files = new Array();
while (true) {
	var file = code.shift();
	if (file == "evaluate") {
		loadFiles(files);
	} else if (file == undefined) {
		break;
	} else {
		files.push(file);
	}
}
function loadFiles(x) {
	for (i in x) {
		try {
			eval(x[i]); 
		} catch (e) {
		}
	}
	optionsReset();
}