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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     2 var lfcode = new Array();
     3 lfcode.push("3");
     4 lfcode.push("with(evalcx('')) this.__defineGetter__('x', Function);");
     5 lfcode.push("gczeal(2)");
     6 lfcode.push("4");
     7 lfcode.push("\
     8 	var log = '';\
     9 	for (var { m  } = i = 0 ;  ; i++) {\
    10 		log += x; \
    11 		if (x === 6)\
    12 			a.slow = true; if (i > 1000) break;\
    13 	}\
    14 ");
    15 while (true) {
    16 	var file = lfcode.shift(); if (file == undefined) { break; }
    17         loadFile(file)
    18 }
    19 function loadFile(lfVarx) {
    20 	if (!isNaN(lfVarx)) {
    21             lfRunTypeId = parseInt(lfVarx);
    22         } else {
    23             switch (lfRunTypeId) {
    24                 case 3: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break;
    25                 case 4: eval("(function() { " + lfVarx + " })();"); break;
    26 	}
    27     }
    28 }

mercurial