mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +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.
15 lines
325 B
HTML
15 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>
|