diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-02 13:15:53 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-02 13:15:53 +0200 |
commit | e95b7e84a46fb47a7981b030a07499dba969fb95 (patch) | |
tree | bae0893558467a10341d5a7cdc02047328792f37 /platform/web/api/api.cpp | |
parent | 7588e3ff0dd7f5e522009f770f99fe593d1ebdb0 (diff) | |
parent | aff767ef0787db47890a4e33d567b25c4b8ec060 (diff) | |
download | redot-engine-e95b7e84a46fb47a7981b030a07499dba969fb95.tar.gz |
Merge pull request #80844 from dalexeev/fix-callable-expected-argc
Fix expected argument count for `Callable` call errors
Diffstat (limited to 'platform/web/api/api.cpp')
-rw-r--r-- | platform/web/api/api.cpp | 2 |
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) { |