eval/decode: Do not loose high surrogates followed by high surrogates

This commit is contained in:
ZyX
2016-03-07 08:59:03 +03:00
parent eb806c9620
commit 032ac502ff
2 changed files with 3 additions and 0 deletions

View File

@@ -389,6 +389,8 @@ describe('json_decode() function', function()
eq('\t\xED\xB0\x80', funcs.json_decode('"\\t\\uDC00"'))
eq('\xED\xA0\x80¬', funcs.json_decode('"\\uD800\\u00AC"'))
eq('\xED\xA0\x80\xED\xA0\x80', funcs.json_decode('"\\uD800\\uD800"'))
end)
local sp_decode_eq = function(expected, json)