summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/microtasks/resources/evaluation-order-2-setup.js
blob: 46f7354538a5e711a267917a7090bf385c34ed75 (plain)
1
2
3
4
5
6
7
8
9
10
// Spec: https://html.spec.whatwg.org/C/#run-a-module-script
setupTest("Module script queueing a microtask then throwing an exception", [
  "step-2.2-1", "step-2.2-2", // Step 6.
  "microtask-2.2",            // "Clean up after running script" at Step 8.
  "global-error",             // "Clean up after running script" at Step 8,
    // because `evaluationPromise` is synchronously rejected and the rejection
    // is processed in the microtask checkpoint here (See also Step 7).
    // As `evaluationPromise` is rejected after the microtask queued during
    // evaluation, "global-error" occurs after "microtask".
]);