js/src/jit-test/tests/ion/bug827821.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/bug827821.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +var lfcode = new Array();
     1.5 +lfcode.push("3");
     1.6 +lfcode.push("\
     1.7 +	gczeal(2);\
     1.8 +	for (let q = 0; q < 50; ++q) {\
     1.9 +		var w = \"r\".match(/r/);\
    1.10 +	}\
    1.11 +	let (eval) (function  (a) {\
    1.12 +		Function = gczeal;\
    1.13 +	})();\
    1.14 +	// .js\
    1.15 +");
    1.16 +lfcode.push(" // .js");
    1.17 +lfcode.push(" // .js");
    1.18 +lfcode.push(" // .js");
    1.19 +while (true) {
    1.20 +	var file = lfcode.shift(); if (file == undefined) { break; }
    1.21 +        loadFile(file)
    1.22 +}
    1.23 +function loadFile(lfVarx) {
    1.24 +    try {
    1.25 +        if (lfVarx.substr(-3) == ".js") {
    1.26 +	    uneval("foo");
    1.27 +            switch (lfRunTypeId) {
    1.28 +                case 3: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break;
    1.29 +                case 4: eval("(function() { " + lfVarx + " })();"); break;
    1.30 +            }
    1.31 +        } else if (!isNaN(lfVarx)) {
    1.32 +            lfRunTypeId = parseInt(lfVarx);
    1.33 +	}
    1.34 +    } catch (lfVare) {}
    1.35 +}

mercurial