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.

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

mercurial