Created
August 16, 2018 15:32
-
-
Save stephenmcgruer/dc4eb73a23f4bccbe409e8b485562676 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Must be run with --js-flags="--expose-gc" --> | |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Test for Blink Reference Cycle crash</title> | |
<style> | |
.animate { | |
height: 100px; | |
width: 100px; | |
background: green; | |
animation: test 1s; | |
} | |
@keyframes test { | |
from { transform: translateX(0); } | |
to { transform: translateX(100px); } | |
} | |
</style> | |
<div class="animate"></div> | |
<script> | |
function causeGC() { | |
console.log('Causing gc()'); | |
gc(); | |
setTimeout(causeGC, 100); | |
} | |
setTimeout(causeGC, 100); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment