diff options
author | Yuriy Glukhov <yglukhov@users.noreply.github.com> | 2017-09-05 17:42:41 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-09-05 16:42:41 +0200 |
commit | d13535471bb75e28b141b09581319216f398b450 (patch) | |
tree | c98f498e42549b50bd7498d5c5b6ff87f9c354c5 /lib/pure | |
parent | 2ef65d5cdf3d65cbfab4c39796ddb4e70e9ebb37 (diff) | |
download | Nim-d13535471bb75e28b141b09581319216f398b450.tar.gz |
Fixed handling of surrogate pairs (#6332)
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/json.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim index e3d5191c6..8c687a8d1 100644 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -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 |