tor-browser

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

regress-624199.js (390B)


      1 // |reftest| skip-if(!this.uneval)
      2 
      3 /*
      4 * Any copyright is dedicated to the Public Domain.
      5 * http://creativecommons.org/licenses/publicdomain/
      6 */
      7 function roundTrip(f) {
      8    try {
      9        eval(uneval(f));
     10        return true;
     11    } catch (e) {
     12        return '' + e;
     13    }
     14 }
     15 
     16 function f() { if (true) { 'use strict'; } var eval; }
     17 assertEq(roundTrip(f), true);
     18 
     19 reportCompare(true,true);