Skip to content

Return an undefined Pos for an empty ObjectList#410

Merged
sgmiller merged 2 commits into
masterfrom
fix-decode-empty-object
Oct 15, 2020
Merged

Return an undefined Pos for an empty ObjectList#410
sgmiller merged 2 commits into
masterfrom
fix-decode-empty-object

Conversation

@sgmiller
Copy link
Copy Markdown

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.

2 participants