aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/embind/embind.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index ae61f09f..d8a4a440 100755
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -721,9 +721,8 @@ RegisteredRawPointer.prototype.fromWireTypeAutoDowncast = function(ptr) {
// todo: can come back -1 or -2!! Throw appropriate exception
return handle;
} else {
- handle = new this.Handle(ptr);
+ return new this.Handle(ptr);
}
- return handle;
};
function RegisteredClassInstance(constructor, Handle) {