Skip to content

Instantly share code, notes, and snippets.

@passcod
Created August 26, 2013 07:33
Show Gist options
  • Select an option

  • Save passcod/6338870 to your computer and use it in GitHub Desktop.

Select an option

Save passcod/6338870 to your computer and use it in GitHub Desktop.
WTFUUUUUUUUCK
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