make ensureProto methods non-enumerable
This commit is contained in:
@@ -6,7 +6,11 @@ var ensureSymbol = function (key) {
|
||||
|
||||
var ensureProto = function (Constructor, key, val) {
|
||||
var proto = Constructor.prototype;
|
||||
proto[key] = proto[key] || val;
|
||||
if (!proto[key]) {
|
||||
Object.defineProperty(proto, key, {
|
||||
value: val
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user