Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep Document value unchanged on parse error, fixes #437 #439

Merged
merged 2 commits into from
Oct 8, 2015

Conversation

pah
Copy link
Contributor

@pah pah commented Oct 7, 2015

Keeping the DOM unchanged in case of an error is the intended behaviour according to the documentation.

Instead of forcing the value to kNullType before starting the parsing, store the parsed value upon success via regular move.

pah added 2 commits October 7, 2015 21:48
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
miloyip added a commit that referenced this pull request Oct 8, 2015
Keep Document value unchanged on parse error, fixes #437
@miloyip miloyip merged commit 1c76070 into Tencent:master Oct 8, 2015
@miloyip
Copy link
Collaborator

miloyip commented Oct 8, 2015

Thanks

@pah pah deleted the fix/437-keep-value-on-error branch October 8, 2015 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants