tor-browser

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

location-valueof.html (487B)


      1 <!DOCTYPE html>
      2 <title>Location valueOf</title>
      3 <script src=/resources/testharness.js></script>
      4 <script src=/resources/testharnessreport.js></script>
      5 <div id=log></div>
      6 <script>
      7 test(() => {
      8  assert_equals(location.valueOf, Object.prototype.valueOf)
      9  assert_equals(typeof location.valueOf.call(5), "object")
     10  const prop = Object.getOwnPropertyDescriptor(location, "valueOf")
     11  assert_false(prop.enumerable)
     12  assert_false(prop.writable)
     13  assert_false(prop.configurable)
     14 })
     15 </script>