Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Created May 20, 2021 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/e446fdc49d387427e3444c1d5bccd7bf to your computer and use it in GitHub Desktop.
Save nolanlawson/e446fdc49d387427e3444c1d5bccd7bf to your computer and use it in GitHub Desktop.
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