tor-browser

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

024.html (475B)


      1 <!doctype html>
      2 <title>Object cloning: throw an exception if function values encountered</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <div id=log></div>
      6 <script>
      7 test(function() {
      8  var obj = { f : function(){}};
      9  var ch = new MessageChannel();
     10  ch.port1.onmessage = function(){};
     11  ch.port2.start();
     12  assert_throws_dom('DATA_CLONE_ERR', function() { ch.port2.postMessage({obj: obj}); });
     13 });
     14 </script>