michael@0: // |jit-test| error: ReferenceError michael@0: michael@0: var lfcode = new Array(); michael@0: lfcode.push("3"); michael@0: lfcode.push("enableSPSProfilingAssertions(false);foo();"); michael@0: while (true) { michael@0: var file = lfcode.shift(); if (file == undefined) { break; } michael@0: loadFile(file) michael@0: } michael@0: function loadFile(lfVarx) { michael@0: if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) { michael@0: switch (lfRunTypeId) { michael@0: default: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break; michael@0: } michael@0: } else if (!isNaN(lfVarx)) { michael@0: lfRunTypeId = parseInt(lfVarx); michael@0: } michael@0: }