blob: 47df8e60949c9dd9afeff98c6b2b47ad2e111649 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Test import of a .mjs module.");
// Module will be executed asynchronously.
window.jsTestIsAsync = true;
</script>
<script>
</script>
<script src="../../../resources/js-test-post.js"></script>
<script>
(async function() {
debug("Module is not executed yet.");
try {
await import("./resources/module-simple-A.mjs");
} catch (e) {
debug("Module import failed.");
} finally {
finishJSTest();
}
}());
</script>
</body>
</html>