Created
May 21, 2015 00:02
-
-
Save samwgoldman/50cb63f6e209ab653e73 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 foo = {} | |
Object.defineProperty(foo, "bar", { | |
enumerable: true, | |
get: function() { | |
return bar; | |
} | |
}) | |
var bar = { foo: foo } | |
foo.bar.foo === foo // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment