1 2 3 4 5 6 7
foo = {} foo.y = 3; foo.y = function () {} Object.defineProperty(foo, "y", { set:function(){} }) gc() delete foo.y gc();