Skip to content

Instantly share code, notes, and snippets.

@stephenmcgruer
Created August 16, 2018 15:32
Show Gist options
  • Save stephenmcgruer/dc4eb73a23f4bccbe409e8b485562676 to your computer and use it in GitHub Desktop.
Save stephenmcgruer/dc4eb73a23f4bccbe409e8b485562676 to your computer and use it in GitHub Desktop.
<!-- 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