Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Console leak repro
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Console leak repro</title>
</head>
<body>
<h1>Console leak repro</h1>
<button type="button" onclick="causeFakeLeak()">Cause a "leak"</button>
<script>
class LeakedObject {}
function causeFakeLeak() {
console.log(new LeakedObject())
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment