js/src/jit-test/tests/ion/bug922118.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/bug922118.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +var lfcode = new Array();
     1.5 +lfcode.push("1");
     1.6 +lfcode.push("");
     1.7 +lfcode.push("0");
     1.8 +lfcode.push("function arguments() { };");
     1.9 +lfcode.push("1");
    1.10 +lfcode.push("\
    1.11 +var GLOBAL_PROPERTIES = new Array();\
    1.12 +var i = 0;\
    1.13 +for ( p in this ) {\
    1.14 +if (p.startsWith('a')) GLOBAL_PROPERTIES[i++] = p;\
    1.15 +}\
    1.16 +for ( i = 0; i < GLOBAL_PROPERTIES.length; i++ ) {\
    1.17 +    eval(GLOBAL_PROPERTIES[i]);\
    1.18 +}\
    1.19 +");
    1.20 +while (true) {
    1.21 +    var file = lfcode.shift(); if (file == undefined) { break; }
    1.22 +    loadFile(file)
    1.23 +}
    1.24 +function loadFile(lfVarx) {
    1.25 +    if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) {
    1.26 +        switch (lfRunTypeId) {
    1.27 +        case 0: evaluate(lfVarx); break;
    1.28 +        case 1: eval(lfVarx); break;
    1.29 +        }
    1.30 +    } else if (!isNaN(lfVarx)) {
    1.31 +        lfRunTypeId = parseInt(lfVarx);
    1.32 +    }
    1.33 +}

mercurial