Util: Fix empty Array parsing
This commit is contained in:
@@ -337,9 +337,9 @@ Value Parser::getArray()
|
||||
// Trailing comma
|
||||
if (array.asArray().size() > 0) {
|
||||
reportError((*m_tokens)[m_index - 1], "invalid comma, expecting ']'");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
reportError(token, "expecting value or ']', not '" + token.symbol + "'");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user