summaryrefslogtreecommitdiff
path: root/src/support/small_vector.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-02-21 12:10:01 -0800
committerGitHub <noreply@github.com>2024-02-21 20:10:01 +0000
commit39ae6cf367fced5aad3224c6bffa086b0cd0d393 (patch)
tree3a46e5f0ebc3c9d0773d4409f67f5b8e4fed3246 /src/support/small_vector.h
parenta2fa5598104f048bce744db57d4d9407473bcd14 (diff)
downloadbinaryen-39ae6cf367fced5aad3224c6bffa086b0cd0d393.tar.gz
binaryen-39ae6cf367fced5aad3224c6bffa086b0cd0d393.tar.bz2
binaryen-39ae6cf367fced5aad3224c6bffa086b0cd0d393.zip
Improve JSON string encoding (#6328)
Catch and report all kinds of WTF-8 encoding errors in the source strings, including invalid leading bytes, invalid trailing bytes, unexpected ends of strings, and invalid surrogate sequences. Insert replacement characters into the output as necessary. Add a TODO about minimizing size by escaping only those code points mandated to be escaped by the JSON spec. Generally improve readability of the code.
Diffstat (limited to 'src/support/small_vector.h')
0 files changed, 0 insertions, 0 deletions