Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /infrastructure/expected-fail/unhandled-rejection-following-subtest.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset=utf-8>
<title>Unhandled rejection following subtest</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({ explicit_done: true });
window.addEventListener('unhandledrejection', () => { done(); }, {once: true});
test(function() {});
Promise.reject(new Error("error outside any setup or test"));
</script>