tor-browser

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

toSource-0.js (410B)


      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 
      8 assertEq(eval(uneval('\x001')), '\x001');
      9 
     10 f = eval('(' + (function () { return '\x001'; }).toString() + ')');
     11 assertEq(f(), '\x001');
     12 
     13 assertEq(eval('\x001'.toSource()) == '\x001', true);
     14 
     15 if (typeof reportCompare === 'function')
     16  reportCompare(true, true);