From 6797f71e7383946c18df2faebb83b51e28b4ee36 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 4 Aug 2019 08:57:51 +0200 Subject: [PATCH] JsonParser: When encountering \uXXXX, just emit a "?" for now. --- AK/JsonParser.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/AK/JsonParser.cpp b/AK/JsonParser.cpp index 5d5d5e23362..2d104af2678 100644 --- a/AK/JsonParser.cpp +++ b/AK/JsonParser.cpp @@ -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);