Skip to content

Instantly share code, notes, and snippets.

@mikolalysenko
Created September 20, 2013 19:46
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 mikolalysenko/6642826 to your computer and use it in GitHub Desktop.
Save mikolalysenko/6642826 to your computer and use it in GitHub Desktop.
Does this leak?
var m = new WeakMap()
var o
setInterval(function() {
for(var i=0; i<100; ++i) {
var x = new Int8Array(1e7)
m.set(x,x)
o = x
}
}, 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment