Created
May 20, 2021 18:58
-
-
Save nolanlawson/e446fdc49d387427e3444c1d5bccd7bf to your computer and use it in GitHub Desktop.
Console leak repro
This file contains 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
<!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