summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/ion/bug925308.js
blob: 0c1c32a191483fbdae71b339db1ad1d5f50e5f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| error: ReferenceError

var lfcode = new Array();
lfcode.push("3");
lfcode.push("enableSPSProfiling();foo();");
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) {
            default: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break;
        }
    } else if (!isNaN(lfVarx)) {
        lfRunTypeId = parseInt(lfVarx);
    }
}