tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

regress-360969-01.js (1054B)


      1 // |reftest| skip-if(Android&&isDebugBuild) slow -- bug 1216226
      2 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 //-----------------------------------------------------------------------------
      8 var BUGNUMBER = 360969;
      9 var summary = '2^17: local var';
     10 var actual = 'No Crash';
     11 var expect = 'No Crash';
     12 
     13 var global = this;
     14 
     15 //-----------------------------------------------------------------------------
     16 test();
     17 //-----------------------------------------------------------------------------
     18 
     19 function test()
     20 {
     21  printBugNumber(BUGNUMBER);
     22  printStatus (summary);
     23 
     24  var start = new Date();
     25  var p;
     26  var i;
     27  var limit = 2 << 16;
     28 
     29  for (var i = 0; i < limit; i++)
     30  {
     31    eval('var pv;');
     32  }
     33 
     34  reportCompare(expect, actual, summary);
     35 
     36  var stop = new Date();
     37 
     38  print('Elapsed time: ' + Math.floor((stop - start)/1000) + ' seconds');
     39 }