ladybird/Tests/LibWeb/Text/input/HTML/ModuleLoading/evaluation-error-cached-in-cycle.html
Andreas Kling 804bf2532b LibJS: Allow cached module evaluation errors
A second root module in a failed cycle can call Evaluate after the
cycle root has already cached an evaluation error. In that case
InnerModuleEvaluation returns the cached error immediately and Evaluate
must reject the new top-level capability with that same error.

Remove the extra assertion that the module evaluation error is empty in
the abrupt completion path. Add text coverage for evaluating both roots
of a module cycle whose dependency throws during evaluation.
2026-05-23 11:36:45 +02:00

14 lines
388 B
HTML

<!DOCTYPE html>
<script src="../../include.js"></script>
<script>
removeTestErrorHandler();
window.log = [];
asyncTest(done => {
window.addEventListener("load", () => {
println("PASS! (Didn't crash)");
done();
});
});
</script>
<script type="module" src="./evaluation-error-cycle-a.js"></script>
<script type="module" src="./evaluation-error-cycle-b.js"></script>