aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/include/emscripten/bind.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h
index 8ce95de7..55fda986 100644
--- a/system/include/emscripten/bind.h
+++ b/system/include/emscripten/bind.h
@@ -445,6 +445,7 @@ namespace emscripten {
args.count,
args.types,
reinterpret_cast<internal::GenericFunction>(&internal::raw_constructor<ClassType, ConstructorArgs...>));
+ return *this;
}
template<typename ReturnType, typename... Args>
@@ -557,6 +558,7 @@ namespace emscripten {
}
new(get()) T(v);
initialized = true;
+ return *this;
}
private: