OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <title>html-script-module-evaluation-error-3</title> | |
5 <script src="/resources/testharness.js"></script> | |
6 <script src="/resources/testharnessreport.js"></script> | |
7 </head> | |
8 <body> | |
9 <h1>html-script-module-evaluation-error-3</h1> | |
10 <script> | |
11 | |
12 setup({allow_uncaught_exception: true}); | |
13 | |
14 var log = []; | |
15 | |
16 window.addEventListener("error", ev => log.push(ev.error)); | |
17 | |
18 var test_load = async_test("test_load"); | |
19 window.addEventListener("load", test_load.step_func_done(ev => { | |
20 assert_array_equals(log, | |
21 ["throw", 666, | |
22 "throw", | |
domenic
2017/04/28 20:12:03
Why does "throw" show up more than once? I thought
neis
2017/05/02 13:51:59
Yes, this is wrong.
| |
23 "throw-nested", | |
24 "throw", | |
25 "throw-nested", | |
26 ]); | |
27 })); | |
28 | |
29 </script> | |
30 <script type="module" src="throw.js"></script> | |
31 <script type="module" src="throw.js"></script> | |
32 <script type="module" src="throw-nested.js"></script> | |
33 <script type="module" src="throw.js"></script> | |
34 <script type="module" src="throw-nested.js"></script> | |
35 </body> | |
36 </html> | |
OLD | NEW |