xError));
      log.push(ev.message);
    });

    window.addEventListener("load", test_load.step_func_done(ev => {
      const msg = log[0];
      assert_array_equals(log, [msg, 1, msg, 2, msg, 3, msg, 4, msg, 5]);
    }));

    function unreachable() { log.push("unexpected"); }
</script>
<script type="module" src="./missing-export-nested.js"
    onerror="unreachable()" onload="log.push(1)"></script>
<script type="module" src="./missing-export-nested.js"
    onerror="unreachable()" onload="log.push(2)"></s