OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <title>html-script-module-evaluation-error-1</title> | |
3 | |
4 <script src="/resources/testharness.js"></script> | |
5 <script src="/resources/testharnessreport.js"></script> | |
6 <script> | |
7 setup({allow_uncaught_exception: true}); | |
8 | |
9 var log = []; | |
10 | |
11 window.addEventListener("error", ev => log.push(ev.error)); | |
12 | |
13 var test_load = async_test("test_load"); | |
14 window.addEventListener("load", test_load.step_func_done(ev => { | |
15 assert_array_equals(log, ["throw", 666]); | |
domenic
2017/05/03 23:49:30
So now per the very latest changes this should sho
neis
2017/05/04 13:07:53
Shouldn't the result now be ["throw", 666, 666, 66
| |
16 })); | |
17 | |
18 function unreachable() { | |
19 log.push("unexpected"); | |
20 } | |
21 </script> | |
22 <script type="module" src="throw.js" onerror="unreachable()"></script> | |
23 <script type="module" src="throw.js" onerror="unreachable()"></script> | |
24 <script type="module" src="throw.js" async onerror="unreachable()"></script> | |
25 <script type="module" src="throw.js" nomodule onerror="unreachable()"></script> | |
OLD | NEW |