aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsystem/include/emscripten/bind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h
index 07955d75..73a8d4da 100755
--- a/system/include/emscripten/bind.h
+++ b/system/include/emscripten/bind.h
@@ -725,7 +725,7 @@ namespace emscripten {
template<typename ReturnType, typename... Args, typename Default>
ReturnType optional_call(const char* name, Default def, Args... args) const {
if (has_function(name)) {
- return Caller<ReturnType>::call(wrapped, name);
+ return Caller<ReturnType, Args...>::call(wrapped, name, args...);
} else {
return def();
}