mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Previously, there was a bug in the specification that would cause an assertion failure, due to the abort event being fired before all dependent signals were aborted.
12 lines
387 B
HTML
12 lines
387 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const abortController = new AbortController();
|
|
const signal = AbortSignal.any([abortController.signal]);
|
|
abortController.signal.addEventListener("abort", () => { AbortSignal.any([signal]) });
|
|
abortController.abort();
|
|
println("PASS (didn't crash)");
|
|
});
|
|
</script>
|