From 16f40c4c8dcaf53478bbf71299a9168c055ad986 Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Wed, 9 Jan 2019 17:53:15 -0800 Subject: [PATCH] No need to worry about UTF-8 byes confused with delimiters, etc Thanks to awesome UTF-8 design it never clashes with ASCII chars. --- assembly/decoder.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/assembly/decoder.ts b/assembly/decoder.ts index 384cdc7..cb8487a 100644 --- a/assembly/decoder.ts +++ b/assembly/decoder.ts @@ -201,7 +201,6 @@ export class JSONDecoder { for (;;) { let byte = this.readChar(); assert(byte >= 0x20, "Unexpected control character"); - // TODO: Make sure unicode handled properly if (byte == '"'.charCodeAt(0)) { stringParts.push( String.fromUTF8(this.state.buffer.buffer.data + savedIndex, this.state.readIndex - savedIndex - 1));