|
|
@ -387,7 +387,7 @@ Value Parser::getObject() |
|
|
|
if (token.type == Token::Type::BraceClose) { |
|
|
|
if (token.type == Token::Type::BraceClose) { |
|
|
|
// Trailing comma
|
|
|
|
// Trailing comma
|
|
|
|
if (object.asObject().size() > 0) { |
|
|
|
if (object.asObject().size() > 0) { |
|
|
|
reportError((*m_tokens)[m_index - 2], "invalid comma, expecting '}'"); |
|
|
|
reportError((*m_tokens)[m_index - 1], "invalid comma, expecting '}'"); |
|
|
|
} |
|
|
|
} |
|
|
|
// Empty object
|
|
|
|
// Empty object
|
|
|
|
break; |
|
|
|
break; |
|
|
|