deserializeJson() leaves \uXXXX instead of returning NotSupported

This commit is contained in:
Benoit Blanchon committed 2021-02-18 19:40:11 +01:00
1 parent 54d4b308f4
commit cc7ebfd11e
3 files changed
+5 -4

No files matched your search

+2 -3
View File
@@ -384,11 +384,10 @@ class JsonDeserializer {
return false;
if (codepoint.append(codeunit))
Utf8::encodeCodepoint(codepoint.value(), _stringStorage);
continue;
#else
_error = DeserializationError::NotSupported;
return false;
_stringStorage.append('\\');
#endif
continue;
}
// replace char