tor-browser

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

regress-479740.js (926B)


      1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 //-----------------------------------------------------------------------------
      7 var BUGNUMBER = 479740;
      8 var summary = 'TM: Do not crash @ TraceRecorder::test_property_cache';
      9 var actual = '';
     10 var expect = '';
     11 
     12 printBugNumber(BUGNUMBER);
     13 printStatus (summary);
     14 
     15 
     16 try
     17 {
     18  eval(
     19    '  function f() {' +
     20    '    for ( foobar in (function() {' +
     21    '          for (var x = 0; x < 2; ++x) {' +
     22    '            if (x % 2 == 1) { yield (this.z.z) = function(){} }' +
     23    '            eval("this", false);' +
     24    '          }' +
     25    '        })());' +
     26    '      function(){}' +
     27    '  }' +
     28    '  f();'
     29    );
     30 }
     31 catch(ex)
     32 {
     33 }
     34 
     35 
     36 reportCompare(expect, actual, summary);