Skip to content

Commit

Permalink
Fix JsValues call forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Aug 27, 2024
1 parent b5c1de6 commit d5d589c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/include/erdblick/cesium-interface/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ ReturnType JsValue::call(std::string const& methodName, Args... args)
// Record the method call in the mock object
value_["methodCalls"].push_back({
{"methodName", methodName},
{"arguments", {args...}} // This assumes Args are convertible to nlohmann::json
{"arguments", {UnpackNativeValue(args)...}} // This assumes Args are convertible to nlohmann::json
});
return ReturnType(); // default-constructed value
#endif
Expand Down

0 comments on commit d5d589c

Please sign in to comment.