From a1d51ff853ae18d46368332b7a314132668648dd Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 27 Mar 2014 14:14:30 -0700 Subject: [PATCH] _super and prototype should not be enumerable --- base.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/base.js b/base.js index ff30de0..e107bf5 100644 --- a/base.js +++ b/base.js @@ -52,13 +52,16 @@ Base.extend = function(name) { // Set up a link to the super object. _super: { - value: this + value: this, + enumerable: false, + writable: false, + configurable: false }, // Set up the prototype chain. prototype: { value: Object.create(this.prototype), - enumerable: true, + enumerable: false, writable: true, configurable: true }