We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b4e52b commit 1633192Copy full SHA for 1633192
native/cocos/bindings/manual/JavaScriptArkTsBridge.cpp
@@ -155,12 +155,12 @@ static bool JavaScriptArkTsBridge_callStaticMethod(se::State& s) {
155
methodName = seval_to_type<std::string>(args[1], ok);
156
SE_PRECONDITION2(ok, false, "Converting methodName failed!");
157
158
- if(argc == 3) {
+ if(argc > 2) {
159
paramStr = seval_to_type<std::string>(args[2], ok);
160
SE_PRECONDITION2(ok, false, "Converting paramStr failed!");
161
}
162
163
- if (argc == 4) {
+ if (argc > 3) {
164
ok = args[3].isBoolean();
165
SE_PRECONDITION2(ok, false, "isSync must be boolean type");
166
isSync = args[3].toBoolean();
0 commit comments