mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
JsonParser: When encountering \uXXXX, just emit a "?" for now.
This commit is contained in:
parent
f37c8f618b
commit
6797f71e73
Notes:
sideshowbarker
2024-07-19 12:54:36 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6797f71e738
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue