Skip to content

Commit

Permalink
make optional function parameters work
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Mar 17, 2024
1 parent 4d9f4dc commit d65e86e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vstgui/uidescription-scripting/tiny-js/TinyJS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1867,9 +1867,10 @@ CScriptVarLink* CTinyJS::functionCall (bool& execute, CScriptVarLink* function,
}
}
CLEAN (value);
if (lexer->getToken () != ')')
lexer->match (',');
v = v->getNextSibling ();
if (lexer->getToken () == ')')
break;
lexer->match (',');
}
lexer->match (')');
// execute function!
Expand Down

0 comments on commit d65e86e

Please sign in to comment.