OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>html-script-module-errorHandling-parseError-DependentMultiple</title> |
| 5 <script src="errorhandling-parseerror-common.js"></script> |
| 6 </head> |
| 7 <body> |
| 8 <script type="module" onerror="errorHandler(event);createSecondDependentRoot
();" src="errorhandling-parseerror-dependentmultiple.noinline-a.js"> |
| 9 </script> |
| 10 <script> |
| 11 |
| 12 function createSecondDependentRoot() |
| 13 { |
| 14 // With the broken dependent module already acquired, try to import
it |
| 15 // again from another root. This root should be unwound appropriate
ly. |
| 16 var script = document.createElement("script"); |
| 17 script.type = "module"; |
| 18 script.src = "errorhandling-parseerror-dependentmultiple.noinline-b.
js"; |
| 19 script.addEventListener("error", errorHandler); |
| 20 document.body.appendChild(script); |
| 21 } |
| 22 |
| 23 </script> |
| 24 </body> |
| 25 </html> |
OLD | NEW |