tor-browser

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

symbol-uneval.js (539B)


      1 // |reftest| skip-if(!this.uneval)
      2 
      3 // Any copyright is dedicated to the Public Domain.
      4 // http://creativecommons.org/licenses/publicdomain/
      5 
      6 assertEq(uneval(Symbol.iterator), "Symbol.iterator");
      7 assertEq(uneval(Symbol()), "Symbol()");
      8 assertEq(uneval(Symbol("")), 'Symbol("")');
      9 assertEq(uneval(Symbol("ponies")), 'Symbol("ponies")');
     10 assertEq(uneval(Symbol.for("ponies")), 'Symbol.for("ponies")');
     11 
     12 assertEq({glyph: Symbol(undefined)}.toSource(), "({glyph:Symbol()})");
     13 
     14 if (typeof reportCompare === "function")
     15    reportCompare(0, 0);