diff options
author | Chad Austin <chad@imvu.com> | 2013-03-19 14:56:06 -0700 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:26:20 +0300 |
commit | fe2bcf89921105ad3719655ec59905cc63be5c3d (patch) | |
tree | 9a3657f612e03117c9418c3c6d7f7090f2a3e6ff | |
parent | f6b4ee3e883db2dd787fcde94909c5e91b2f8a92 (diff) |
baseClasses is not necessary
-rwxr-xr-x | src/embind/embind.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index caec7978..48bf2a7f 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -69,8 +69,6 @@ function _embind_repr(v) { } } -var baseClasses = {}; // rawType -> rawBaseType - // typeID -> { toWireType: ..., fromWireType: ... } var registeredTypes = {}; @@ -521,7 +519,8 @@ RegisteredPointer.prototype.toWireType = function(destructors, handle) { throwBindingError('Expected null or instance of ' + this.name + ', got ' + IMVU.repr(handle)); } // TODO: this is not strictly true - // It seems legal to support BY_EMVAL and INTRUSIVE conversions from raw pointers to smart pointers + // We could support BY_EMVAL conversions from raw pointers to smart pointers + // because the smart pointer can hold a reference to the handle if (this.isSmartPointer && undefined === handle.$$.smartPtr) { throwBindingError('Passing raw pointer to smart pointer is illegal'); } @@ -754,8 +753,6 @@ function __embind_register_class( var baseClass; var basePrototype; if (baseClassRawType) { - baseClasses[rawType] = baseClassRawType; - baseClass = base.registeredClass; basePrototype = baseClass.instancePrototype; } else { |