1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug743876.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +// Binary: cache/js-dbg-64-434f50e70815-linux 1.5 +// Flags: -m -n -a 1.6 +// 1.7 + 1.8 +var lfcode = new Array(); 1.9 +lfcode.push("3"); 1.10 +lfcode.push("\ 1.11 +evaluate(\"\");\ 1.12 +function slice(a, b) {\ 1.13 + return slice(index, ++(ArrayBuffer));\ 1.14 +}\ 1.15 +"); 1.16 +lfcode.push("0"); 1.17 +lfcode.push("var arr = [0, 1, 2, 3, 4];\ 1.18 +function replacer() {\ 1.19 + assertEq(arguments.length, 2);\ 1.20 + var key = arguments[0], value = arguments[1];\ 1.21 + return value;\ 1.22 +}\ 1.23 +assertEq(JSON.stringify(arr, replacer), '[0,1,2,3,4]');\ 1.24 +"); 1.25 +while (true) { 1.26 + var file = lfcode.shift(); if (file == undefined) { break; } 1.27 + loadFile(file); 1.28 +} 1.29 +function loadFile(lfVarx) { 1.30 + if (!isNaN(lfVarx)) { 1.31 + lfRunTypeId = parseInt(lfVarx); 1.32 + } else { 1.33 + switch (lfRunTypeId) { 1.34 + case 0: evaluate(lfVarx); break; 1.35 + case 3: function newFunc(x) { new Function(x)(); }; newFunc(lfVarx); break; 1.36 + } 1.37 + } 1.38 +}