evaluation-order-4.html (614B)
1 <!DOCTYPE html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 <script src="resources/evaluation-order-setup.js"></script> 5 6 <script> 7 // Spec: https://html.spec.whatwg.org/C/#run-a-module-script 8 setupTest("Module script queueing a microtask then top-level await", [ 9 "step-4.1-1", "step-4.1-2", 10 "microtask-4.1", 11 "script-load", 12 "step-4.2-1", "step-4.2-2", 13 "microtask-4.2", 14 ]); 15 window.onerror = testDone; 16 </script> 17 <script type="module" src="resources/evaluation-order-4.1.mjs" 18 onerror="unreachable()" onload="log.push('script-load')"></script>