blob: b07c58f825f84b3ae761849f8542f9af05cfd449 [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 dependent module throw 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">
import "./resources/module-execution-error-inside-dependent-module-should-be-propagated-to-onerror.js"
testFailed("executed");
</script>
</body>
</html>