mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-04 08:01:51 +00:00
Stealing the callbacks from the AnimationFrameCallbackDriver made them no longer safe from GC. Continue to store them on the class until we have finished their execution.
14 lines
325 B
HTML
14 lines
325 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest((done) => {
|
|
requestAnimationFrame(() => {
|
|
println("Collect garbage");
|
|
internals.gc();
|
|
});
|
|
|
|
requestAnimationFrame(() => {
|
|
println("PASS! (Didn't crash)");
|
|
done();
|
|
});
|
|
});
|
|
</script>
|