diff --git a/lib/ClassBuilder.js b/lib/ClassBuilder.js index 4c7b841..71005be 100644 --- a/lib/ClassBuilder.js +++ b/lib/ClassBuilder.js @@ -402,7 +402,7 @@ exports.prototype.build = function extend() // chain, it takes much more time to define the property in this manner. // Therefore, we can save a substantial amount of time by defining it on the // prototype rather than on each new instance via __initProps(). - util.defineSecureProp( prototype, '__self', new_class ); + util.defineSecureProp( prototype, '__self', new_class.___$$svis$$ ); // create internal metadata for the new class var meta = createMeta( new_class, base ); @@ -775,9 +775,6 @@ exports.prototype._attachPropInit = function( inst_props, properties, members ); - // give internal methods access to protected/private static members - vis.__self = ctor.___$$svis$$; - // provide a means to access the actual instance (rather than the // property/visibility object) internally (this will translate to // this.__inst from within a method), but only if we're on our final