diff options
-rwxr-xr-x | src/embind/embind.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 8810727d..805c8b1d 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -703,7 +703,6 @@ function __embind_register_class( registeredPointer: registeredPointer, count: { value: 1 }, ptr: ptr, - pointeeType: type, // todo: is this necessary? } }); }); @@ -739,7 +738,7 @@ function __embind_register_class( Handle.prototype['delete'] = function() { if (!this.$$.ptr) { - throwBindingError(type.name + ' instance already deleted'); // todo: but 'type' hasn't been resolved!?! + throwBindingError(type.name + ' instance already deleted'); } this.$$.count.value -= 1; @@ -994,14 +993,10 @@ function __embind_register_smart_ptr( count: {value: 1}, smartPtr: ptr, ptr: rawGetPointee(ptr), - // todo: is this necessary? - pointeeType: pointeeType, }, }); }); - // TODO: test for SmartPtr.prototype.constructor property? - // We likely want it distinct from pointeeType.prototype.constructor Handle.prototype = Object.create(pointeeType.Handle.prototype); Handle.prototype.clone = function() { |