Skip to content

Commit 1633192

Browse files
author
qiuguohua
committed
Replace ‘equal to’ with 'greater than'
1 parent 0b4e52b commit 1633192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

native/cocos/bindings/manual/JavaScriptArkTsBridge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ static bool JavaScriptArkTsBridge_callStaticMethod(se::State& s) {
155155
methodName = seval_to_type<std::string>(args[1], ok);
156156
SE_PRECONDITION2(ok, false, "Converting methodName failed!");
157157

158-
if(argc == 3) {
158+
if(argc > 2) {
159159
paramStr = seval_to_type<std::string>(args[2], ok);
160160
SE_PRECONDITION2(ok, false, "Converting paramStr failed!");
161161
}
162162

163-
if (argc == 4) {
163+
if (argc > 3) {
164164
ok = args[3].isBoolean();
165165
SE_PRECONDITION2(ok, false, "isSync must be boolean type");
166166
isSync = args[3].toBoolean();

0 commit comments

Comments
 (0)