Created
March 28, 2009 00:22
-
-
Save benjamn/86984 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var empty = function() { | |
this.foo = 0; | |
} | |
empty.prototype = { foo: 42 }; | |
var obj = new empty; | |
print(obj.foo); | |
obj.foo = window.undefined; | |
print(obj.foo); | |
delete obj.foo; | |
print(obj.foo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment