Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<html>
<head>
<title>html-script-module-errorHandling-parseError-DependentMultiple</title>
<script src="errorhandling-parseerror-common.js"></script>
</head>
<body>
<script type="module" onerror="errorHandler(event)">
// No parse errors in the root module, just in the dependent module
import test from "./errorhandling-parseerror-dependentmultiple.js";
document._errorReported = "shouldn't have run dependent module";
</script>
<script type="module" onerror="errorHandler(event)">
// With the broken dependent module already acquired, try to import it
// again from another root. This root should be unwound appropriately.
import test from "./errorhandling-parseerror-dependentmultiple.js";
document._errorReported = "really shouldn't have run dependent module";
</script>
</body>
</html>