Fixed handling of surrogate pairs (#6332)
This commit is contained in:
parent
2ef65d5cdf
commit
d13535471b
2 changed files with 18 additions and 10 deletions
|
|
@ -1815,8 +1815,7 @@ when isMainModule:
|
|||
doAssert(testJson["e"]["f"].bval)
|
||||
|
||||
# make sure UTF-16 decoding works.
|
||||
when not defined(js): # TODO: The following line asserts in JS
|
||||
doAssert(testJson["c"].str == "🎃")
|
||||
doAssert(testJson["c"].str == "🎃")
|
||||
doAssert(testJson["d"].str == "æ")
|
||||
|
||||
# make sure no memory leek when parsing invalid string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue