tor-browser

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

chromeWorker_worker.sys.mjs (433B)


      1 /**
      2 * Any copyright is dedicated to the Public Domain.
      3 * http://creativecommons.org/publicdomain/zero/1.0/
      4 */
      5 
      6 // our onmessage handler lives in the module.
      7 import _ from "./chromeWorker_worker_submod.sys.mjs";
      8 
      9 if (!("ctypes" in self)) {
     10  throw "No ctypes!";
     11 }
     12 
     13 // Go ahead and verify that the ctypes lazy getter actually works.
     14 if (ctypes.toString() != "[object ctypes]") {
     15  throw "Bad ctypes object: " + ctypes.toString();
     16 }