Emit an error if user tries to iterate arrays out of order

This commit is contained in:
John Keiser
2021-01-24 18:25:34 -08:00
parent fe726b0f80
commit 22b3ea93a8
5 changed files with 21 additions and 9 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ namespace internal {
{ INVALID_JSON_POINTER, "Invalid JSON pointer syntax." },
{ INVALID_URI_FRAGMENT, "Invalid URI fragment syntax." },
{ UNEXPECTED_ERROR, "Unexpected error, consider reporting this problem as you may have found a bug in simdjson" },
{ PARSER_IN_USE, "Cannot parse a new document while a document is still in use." }
{ PARSER_IN_USE, "Cannot parse a new document while a document is still in use." },
{ OUT_OF_ORDER_ITERATION, "Objects and arrays can only be iterated when they are first encountered." }
}; // error_messages[]
} // namespace internal