Last active
January 3, 2016 04:58
-
-
Save poying/8412361 to your computer and use it in GitHub Desktop.
This file contains 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.getPropertyDescriptor || (Object.getPropertyDescriptor = function (obj, name) { | |
var desc; | |
while (obj) { | |
desc = Object.getOwnPropertyDescriptor(obj, name); | |
if (desc) { | |
desc.configurable = true; | |
return desc; | |
} | |
obj = Object.getPrototypeOf(obj); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment