Created
August 26, 2013 07:33
-
-
Save passcod/6338870 to your computer and use it in GitHub Desktop.
WTFUUUUUUUUCK
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
| Object.keys(Ao).forEach (prop) -> | |
| v = Ao[prop] #=> correct value | |
| p = Object.getOwnPropertyDescriptor(Ao, prop) #=> correct descriptor | |
| p.value = v #<- does FUCKING SHIT ALL | |
| console.log JSON.stringify p #=> returns descriptor ONLY | |
| props[prop] = p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment