js/src/jit-test/tests/ion/bug925308.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/bug925308.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +// |jit-test| error: ReferenceError
     1.5 +
     1.6 +var lfcode = new Array();
     1.7 +lfcode.push("3");
     1.8 +lfcode.push("enableSPSProfilingAssertions(false);foo();");
     1.9 +while (true) {
    1.10 +  var file = lfcode.shift(); if (file == undefined) { break; }
    1.11 +  loadFile(file)
    1.12 +}
    1.13 +function loadFile(lfVarx) {
    1.14 +    if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) {
    1.15 +        switch (lfRunTypeId) {
    1.16 +            default: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break;
    1.17 +        }
    1.18 +    } else if (!isNaN(lfVarx)) {
    1.19 +        lfRunTypeId = parseInt(lfVarx);
    1.20 +    }
    1.21 +}

mercurial