tor-browser

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

014.html (470B)


      1 <!doctype html>
      2 <title>structured clone vs reference</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id="log"></div>
      6 <script>
      7 async_test(function(t) {
      8  var x = [];
      9  y = [x,x];
     10  postMessage(y, '*');
     11  onmessage = t.step_func(function(e) {
     12    assert_equals(e.data[0], e.data[1], 'e.data[0] === e.data[1]');
     13    assert_not_equals(e.data[0], x, 'e.data[0] !== x');
     14    t.done();
     15  });
     16 });
     17 </script>