This backports (isolate) a fix by jkeiser of issue 1632.

This commit is contained in:
Daniel Lemire
2021-07-19 11:13:37 -04:00
parent 3300d8463b
commit 3c5c2d2404
29 changed files with 1358 additions and 809 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ namespace internal {
{ 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." },
{ OUT_OF_ORDER_ITERATION, "Objects and arrays can only be iterated when they are first encountered." },
{ INSUFFICIENT_PADDING, "simdjson requires the input JSON string to have at least SIMDJSON_PADDING extra bytes allocated, beyond the string's length." }
{ INSUFFICIENT_PADDING, "simdjson requires the input JSON string to have at least SIMDJSON_PADDING extra bytes allocated, beyond the string's length." },
{ INCOMPLETE_ARRAY_OR_OBJECT, "JSON document ended early in the middle of an object or array." }
}; // error_messages[]
} // namespace internal