LibJS: Fix obviously wrong \uXXXX serialization in JSONObject

This commit is contained in:
Andreas Kling 2021-02-04 00:08:33 +01:00
commit 91db36064f
Notes: sideshowbarker 2024-07-18 22:36:02 +09:00

View file

@ -380,7 +380,7 @@ String JSONObject::quote_json_string(String string)
break;
default:
if (ch < 0x20) {
builder.append("\\u%#08x", ch);
builder.appendff("\\u{:04x}", ch);
} else {
builder.append(ch);
}