aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/embind/embind.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 3e916ed4..c4e7d843 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -462,7 +462,7 @@ function __embind_register_class(
var body = constructor.body;
body.apply(this, arguments);
});
- constructor.prototype = Object.create(Handle.prototype);
+ constructor.prototype = Handle.prototype;
typeRegistry[classType] = {
name: name,