js/src/jit-test/tests/auto-regress/bug743876.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.

michael@0 1 // Binary: cache/js-dbg-64-434f50e70815-linux
michael@0 2 // Flags: -m -n -a
michael@0 3 //
michael@0 4
michael@0 5 var lfcode = new Array();
michael@0 6 lfcode.push("3");
michael@0 7 lfcode.push("\
michael@0 8 evaluate(\"\");\
michael@0 9 function slice(a, b) {\
michael@0 10 return slice(index, ++(ArrayBuffer));\
michael@0 11 }\
michael@0 12 ");
michael@0 13 lfcode.push("0");
michael@0 14 lfcode.push("var arr = [0, 1, 2, 3, 4];\
michael@0 15 function replacer() {\
michael@0 16 assertEq(arguments.length, 2);\
michael@0 17 var key = arguments[0], value = arguments[1];\
michael@0 18 return value;\
michael@0 19 }\
michael@0 20 assertEq(JSON.stringify(arr, replacer), '[0,1,2,3,4]');\
michael@0 21 ");
michael@0 22 while (true) {
michael@0 23 var file = lfcode.shift(); if (file == undefined) { break; }
michael@0 24 loadFile(file);
michael@0 25 }
michael@0 26 function loadFile(lfVarx) {
michael@0 27 if (!isNaN(lfVarx)) {
michael@0 28 lfRunTypeId = parseInt(lfVarx);
michael@0 29 } else {
michael@0 30 switch (lfRunTypeId) {
michael@0 31 case 0: evaluate(lfVarx); break;
michael@0 32 case 3: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break;
michael@0 33 }
michael@0 34 }
michael@0 35 }

mercurial