js/src/jit-test/tests/ion/bug729899-1.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 var lfcode = new Array();
     2 lfcode.push("function addThis() {}");
     3 lfcode.push("\
     4 var UBound = 0;\
     5 var expectedvalues = [];\
     6 addThis();\
     7 function addThis() {\
     8   expectedvalues[UBound] = expect;\
     9   UBound++;\
    10 }\
    11 ");
    12 lfcode.push("\
    13   var expect = 'No Crash';\
    14   for (var i = 0; i < (2 << 16); i++) addThis();\
    15 ");
    16 while (true) {
    17 	var file = lfcode.shift(); if (file == undefined) { break; }
    18         try { evaluate(file); } catch(lfVare) {}
    19 }

mercurial