tor-browser

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

027.html (483B)


      1 <!doctype html>
      2 <title>Cloning objects, preserving sharing</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() {
      8  var obj1 = {o: 1};
      9  var obj2 = {d: obj1};
     10  var obj3 = {d: obj1};
     11  var obj_dag = {b: obj2, c: obj3};
     12 
     13  postMessage(obj_dag, '*');
     14  onmessage = this.step_func(function(e) {
     15    assert_equals(e.data.b.d, e.data.c.d);
     16    this.done();
     17  });
     18 });
     19 </script>