tor-browser

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

regress-543839.js (778B)


      1 /* -*- indent-tabs-mode: nil; js-indent-level: 4 -*- */
      2 /*
      3 * Any copyright is dedicated to the Public Domain.
      4 * http://creativecommons.org/licenses/publicdomain/
      5 * Contributor: Igor Bukanov
      6 */
      7 
      8 //-----------------------------------------------------------------------------
      9 var BUGNUMBER = 543839;
     10 var summary = 'js_GetMutableScope caller must lock the object';
     11 var actual;
     12 var expect = 1;
     13 
     14 printBugNumber(BUGNUMBER);
     15 printStatus (summary);
     16 
     17 
     18 function test()
     19 {
     20    for (var i = 0; i != 100; ++i)
     21        var tmp = { a: 1 };
     22    return 1;
     23 }
     24 
     25 if (typeof evalcx == 'undefined')
     26 {
     27    print('Skipping. This test requires evalcx.');
     28    actual = expect;
     29 } else {
     30    test();
     31    test();
     32    test();
     33    actual = evalcx("test()", this);
     34 }
     35 
     36 reportCompare(expect, actual, summary);