<!DOCTYPE html>
<title>Module script graph fetch in flight when document is destroyed shouldn't crash.</title>
<script>
// This test expects the testrunner terminates the test without waiting for onload.
if (window.testRunner)
testRunner.dumpAsText();
</script>
<script type="module">
import { notfound } from "./404.js";
import { slow } from "./../../resources/slow-script.pl?delay=1000";
</script>