mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 925308 - Added test case.
This commit is contained in:
parent
ecbc3a5108
commit
5d606aa99a
18
js/src/jit-test/tests/ion/bug925308.js
Normal file
18
js/src/jit-test/tests/ion/bug925308.js
Normal file
@ -0,0 +1,18 @@
|
||||
// |jit-test| error: ReferenceError
|
||||
|
||||
var lfcode = new Array();
|
||||
lfcode.push("3");
|
||||
lfcode.push("enableSPSProfilingAssertions(false);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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user