Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/scripting-1/the-script-element/module/evaluation-error-5.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Handling of evaluation errors, 5</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({allow_uncaught_exception: true});
const test_load = async_test("Test for the inline module script error that reports wrong line\n");
window.addEventListener("error", test_load.step_func_done(ev => {
const expectedLine = 16;
assert_equals(ev.lineno, expectedLine);
}));
</script>
<script type="module">a</script>