diff options
-rwxr-xr-x | src/embind/embind.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 0eefef36..d664435f 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -529,6 +529,8 @@ RegisteredPointer.prototype.toWireType = function(destructors, handle) { if (!(handle instanceof this.registeredClass.constructor)) { 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 if (this.isSmartPointer && undefined === handle.$$.smartPtr) { throwBindingError('Passing raw pointer to smart pointer is illegal'); } |