summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug922118.js
blob: 0c1829a3bebc89425dd244f8bb7e68ecf70f2936 (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
var lfcode = new Array();
lfcode.push("1");
lfcode.push("");
lfcode.push("0");
lfcode.push("function arguments() { };");
lfcode.push("1");
lfcode.push("\
var GLOBAL_PROPERTIES = new Array();\
var i = 0;\
for ( p in this ) {\
if (p.startsWith('a')) GLOBAL_PROPERTIES[i++] = p;\
}\
for ( i = 0; i < GLOBAL_PROPERTIES.length; i++ ) {\
    eval(GLOBAL_PROPERTIES[i]);\
}\
");
while (true) {
    var file = lfcode.shift(); if (file == undefined) { break; }
    loadFile(file)
}
function loadFile(lfVarx) {
    if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) {
        switch (lfRunTypeId) {
        case 0: evaluate(lfVarx); break;
        case 1: eval(lfVarx); break;
        }
    } else if (!isNaN(lfVarx)) {
        lfRunTypeId = parseInt(lfVarx);
    }
}