mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Fix setTimeout() when there's no active script
Implements https://github.com/whatwg/html/pull/9712 Fixes https://github.com/SerenityOS/serenity/issues/20970
This commit is contained in:
committed by
Andreas Kling
parent
9335524f15
commit
56f0b10d14
Notes:
sideshowbarker
2024-07-16 23:13:25 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/56f0b10d14 Pull-request: https://github.com/SerenityOS/serenity/pull/21051 Issue: https://github.com/SerenityOS/serenity/issues/20970 Reviewed-by: https://github.com/kalenikaliaksandr Reviewed-by: https://github.com/trflynn89
@@ -0,0 +1,9 @@
|
||||
<script src="include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
queueMicrotask(setTimeout.bind(this, () => {}));
|
||||
queueMicrotask(() => {
|
||||
println("didn't crash!");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user