summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug925308.js
blob: 9950af3ddccdd3a72a4db386b2653e84b132c4c4 (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("enableGeckoProfiling();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);
    }
}