blob: c072a86317159654a7c4c0947d131a769df083ec [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Test window.onerror will be fired when the inlined module throws an error.');
// Module will be executed asynchronously.
window.jsTestIsAsync = true;
debug('Module is not executed yet.');
window.onerror = function () {
finishJSTest();
}
</script>
<script src="../../../resources/js-test-post.js"></script>
<script type="module">
debug('Executing the module.');
throw new Error("module is executed.");
</script>
</body>
</html>