tor-browser

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

evaluation-error-5.html (533B)


      1 <!DOCTYPE html>
      2 <title>Handling of evaluation errors, 5</title>
      3 
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script>
      7    setup({allow_uncaught_exception: true});
      8    const test_load = async_test("Test for the inline module script error that reports wrong line\n");
      9    window.addEventListener("error", test_load.step_func_done(ev => {
     10 
     11        const expectedLine = 16;
     12        assert_equals(ev.lineno, expectedLine);
     13 
     14    }));
     15 </script>
     16 <script type="module">a</script>