blob: b9f055d107555ead777c1ee276eae62b50606cad [file] [log] [blame]
<!DOCTYPE html>
<head>
</head>
<body>
<script src="../../js-test-resources/js-test-pre.js"></script>
<script>
window.jsTestIsAsync = true;
description("The test passes if error event gets unsanitized information about the module script error.");
window.addEventListener('error', function() {
shouldBeEqualToString("event.message.match(/SomeError/)[0]", "SomeError");
shouldBeEqualToString("event.filename", "http://localhost:8000/security/resources/cors-script.py?fail=true");
shouldBe("event.lineno", "1");
shouldBe("event.colno", "52");
shouldBeEqualToString("event.error.toString()", "SomeError");
finishJSTest();
});
successfullyParsed = true;
</script>
<script type="module" crossorigin="anonymous" src="http://localhost:8000/security/resources/cors-script.py?fail=true"></script>
<script src="../../js-test-resources/js-test-post.js"></script>