JsonParser: When encountering \uXXXX, just emit a "?" for now.

This commit is contained in:
Andreas Kling 2019-08-04 08:57:51 +02:00
parent f37c8f618b
commit 6797f71e73
Notes: sideshowbarker 2024-07-19 12:54:36 +09:00

View file

@ -80,8 +80,12 @@ String JsonParser::consume_quoted_string()
builder.append('\f');
break;
case 'u':
// FIXME: Implement \uXXXX
ASSERT_NOT_REACHED();
consume();
consume();
consume();
consume();
// FIXME: This is obviously not correct, but we don't have non-ASCII support so meh.
builder.append("?");
break;
default:
builder.append(escaped_ch);