tor-browser

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

js_worker-test.js (541B)


      1 /* eslint-disable no-unused-vars, no-undef */
      2 "use strict";
      3 startWorkerFromWorker();
      4 
      5 var w;
      6 function startWorkerFromWorker() {
      7  w = new Worker("js_worker-test2.js");
      8 }
      9 
     10 importScriptsFromWorker();
     11 
     12 function importScriptsFromWorker() {
     13  try {
     14    importScripts("missing1.js", "missing2.js");
     15  } catch (e) {}
     16 }
     17 
     18 createJSONRequest();
     19 
     20 function createJSONRequest() {
     21  const request = new XMLHttpRequest();
     22  request.open("GET", "missing.json", true);
     23  request.send(null);
     24 }
     25 
     26 fetchThing();
     27 
     28 function fetchThing() {
     29  fetch("missing.txt");
     30 }