Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep Document value unchanged on parse error, fixes Tencent#437
Keeping the DOM unchanged in case of an error is the intended behaviour according to the [documentation] [1]. Instead of forcing the value to `kNullType` before starting the parsing, store the parsed value upon success via regular move. [1]: https://miloyip.github.io/rapidjson/md_doc_dom.html#ParseError
- Loading branch information