tor-browser

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

bug1559123.js (558B)


      1 // |reftest| skip-if(!xulRuntime.shell)
      2 
      3 const getStrings = (strings, ...values) => strings;
      4 const getRef = () => getStrings`test`;
      5 let c = getRef();
      6 relazifyFunctions(getRef);
      7 assertEq(getRef(), c);
      8 // Note the failure case here looks like this:
      9 // Assertion failed: got ["test"], expected ["test"]
     10 // If you're reading this test and going "wtf", it's because this is testing
     11 // reference identity of the array object - they're actually different arrays,
     12 // but have the same contents.
     13 
     14 if (typeof reportCompare === "function")
     15  reportCompare(true, true);