Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset=utf-8>
<title>Test link failure in import()</title>
<script>
SimpleTest.waitForExplicitFinish();
async function testLoaded() {
await import("./import_circular.mjs").then(() => {
ok(false, "Should have thrown a error");
}).catch((error) => {
ok(true, "Error has been thrown");
}).finally(() => {
SimpleTest.finish();
});
}
</script>
<body onload='testLoaded()'></body>