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

Return an undefined Pos for an empty ObjectList #410

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

sgmiller
Copy link

When decoding a value which contains an object (with braces) but no content, there is no first Item to use for the position in errors. Instead return an undefined tokenPos.

@sgmiller sgmiller merged commit beb03ea into master Oct 15, 2020
@sgmiller sgmiller deleted the fix-decode-empty-object branch October 15, 2020 20:37
@AdamKorcz AdamKorcz mentioned this pull request Apr 2, 2021
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.

None yet

2 participants