tor-browser

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

025-1.js (477B)


      1 importScripts("/resources/testharness.js");
      2 
      3 test(function() {
      4  var ch = new MessageChannel();
      5  assert_true(ch.port1 instanceof MessagePort,
      6              "Worker MessageChannel's port not an instance of MessagePort");
      7 }, "Worker MessageChannel's port should be an instance of MessagePort");
      8 
      9 test(function() {
     10  assert_throws_js(TypeError, function() {
     11    new MessagePort()
     12  }, "MessagePort is [[Callable]]");
     13 }, "Worker MessagePort should not be [[Callable]]");
     14 
     15 done();