tor-browser

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

error-and-slow-dependency.html (610B)


      1 <!DOCTYPE html>
      2 <title>Module importing syntax error script and slow script should not crash UA</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script type="module">
      6 setup({allow_uncaught_exception: true});
      7 window.log = [];
      8 window.loaded = false;
      9 </script>
     10 <script type="module">
     11 import "./syntaxerror.js";
     12 import "./resources/delayed-modulescript.py";
     13 
     14 window.loaded = true;
     15 </script>
     16 <script type="module">
     17 test(() => {
     18  assert_false(loaded);
     19  }, "module graph with a syntax error should not evaulate but should not crash UA.");
     20 </script>