blob: 5a3b64e49725ddd1978309ebaa679201ea754bfc [file] [log] [blame]
<!--
Copyright 2020 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<h1>Memory Panel (Heap profiler) Test</h1>
<script>
class Retainer {
constructor(foo) {
this.foo = foo;
}
}
var retainer = null;
function run() {
function leaking() {
console.log('leaking');
}
var div = document.createElement('div');
div.addEventListener('click', leaking, true);
retainer = new Retainer(div);
}
run();
</script>