tor-browser

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

location-tojson.html (486B)


      1 <!DOCTYPE html>
      2 <title>Location has no toJSON</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.toJSON, undefined)
      9  assert_equals(Object.getOwnPropertyDescriptor(location, "toJSON"), undefined)
     10  assert_false(location.hasOwnProperty("toJSON"))
     11 })
     12 </script>
     13 <!-- See https://github.com/whatwg/html/pull/2294 for context. (And the HTML Standard of course.) -->