summaryrefslogtreecommitdiffstats
path: root/platform/web/api/api.cpp
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-09-29 19:19:46 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-09-29 20:00:10 +0300
commitaff767ef0787db47890a4e33d567b25c4b8ec060 (patch)
tree703ba12b49d3aea46e883991b5157d400047039a /platform/web/api/api.cpp
parent19890614c6a78ec36030ce65c7da05f07fcdb9ed (diff)
downloadredot-engine-aff767ef0787db47890a4e33d567b25c4b8ec060.tar.gz
Fix expected argument count for `Callable` call errors
Diffstat (limited to 'platform/web/api/api.cpp')
-rw-r--r--platform/web/api/api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/web/api/api.cpp b/platform/web/api/api.cpp
index ab7154b0fb..a695091a04 100644
--- a/platform/web/api/api.cpp
+++ b/platform/web/api/api.cpp
@@ -96,7 +96,7 @@ Ref<JavaScriptObject> JavaScriptBridge::create_callback(const Callable &p_callab
Variant JavaScriptBridge::_create_object_bind(const Variant **p_args, int p_argcount, Callable::CallError &r_error) {
if (p_argcount < 1) {
r_error.error = Callable::CallError::CALL_ERROR_TOO_FEW_ARGUMENTS;
- r_error.argument = 0;
+ r_error.expected = 1;
return Ref<JavaScriptObject>();
}
if (p_args[0]->get_type() != Variant::STRING) {