diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-04-19 20:11:02 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-04-19 20:11:02 +0200 |
| commit | 29b2c0476698d0f4b240e87945cfa278da82b57a (patch) | |
| tree | a52325cb145fb192f20b647ea5c3b3b46389779e /core/encoding | |
| parent | d869ba7bcd351ebaf4307fe9b8699ee8849a2a44 (diff) | |
Revert "Fix unmarshal for escaped strings."
This reverts commit 581255bf23af90b77bb2b6e2671b40e2b565754e.
Diffstat (limited to 'core/encoding')
| -rw-r--r-- | core/encoding/json/parser.odin | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/encoding/json/parser.odin b/core/encoding/json/parser.odin index 0b9a1cf33..c682ec9bd 100644 --- a/core/encoding/json/parser.odin +++ b/core/encoding/json/parser.odin @@ -281,11 +281,6 @@ parse_object :: proc(p: ^Parser) -> (value: Value, err: Error) { // IMPORTANT NOTE(bill): unquote_string assumes a mostly valid string unquote_string :: proc(token: Token, spec: Specification, allocator := context.allocator) -> (value: string, err: Error) { - if allocator.data == nil { - // We were called from `unmarshal_count_array`, return early. - return "", nil - } - get_u2_rune :: proc(s: string) -> rune { if len(s) < 4 || s[0] != '\\' || s[1] != 'x' { return -1 |