summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/error-and-slow-dependency.html
blob: f336276f3fcdbe1777b0c3bcf3140999655011b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<title>Module importing syntax error script and slow script should not crash UA</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script type="module">
setup({allow_uncaught_exception: true});
window.log = [];
window.loaded = false;
</script>
<script type="module">
import "./syntaxerror.js";
import "./resources/delayed-modulescript.py";

window.loaded = true;
</script>
<script type="module">
test(() => {
  assert_false(loaded);
  }, "module graph with a syntax error should not evaulate but should not crash UA.");
</script>