Util: Fix empty Array parsing

This commit is contained in:
Riyyi
2022-07-10 16:13:44 +02:00
parent fc3dc936fa
commit ea7049306e
+1 -1
View File
@@ -337,8 +337,8 @@ Value Parser::getArray()
// Trailing comma
if (array.asArray().size() > 0) {
reportError((*m_tokens)[m_index - 1], "invalid comma, expecting ']'");
break;
}
break;
}
else {
reportError(token, "expecting value or ']', not '" + token.symbol + "'");