mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
AK+Everywhere: Store JSON strings as String
This commit is contained in:
parent
e591636419
commit
bc54c0cdfb
Notes:
github-actions[bot]
2025-02-21 00:29:21 +00:00
Author: https://github.com/trflynn89
Commit: bc54c0cdfb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
33 changed files with 163 additions and 152 deletions
|
@ -176,7 +176,7 @@ public:
|
|||
for (auto& it : m_graph) {
|
||||
AK::JsonArray edges;
|
||||
for (auto const& value : it.value.edges) {
|
||||
edges.must_append(ByteString::formatted("{}", value));
|
||||
edges.must_append(MUST(String::formatted("{}", value)));
|
||||
}
|
||||
|
||||
auto node = AK::JsonObject();
|
||||
|
@ -185,7 +185,7 @@ public:
|
|||
auto location = it.value.root_origin->location;
|
||||
switch (type) {
|
||||
case HeapRoot::Type::Root:
|
||||
node.set("root"sv, ByteString::formatted("Root {} {}:{}", location->function_name(), location->filename(), location->line_number()));
|
||||
node.set("root"sv, MUST(String::formatted("Root {} {}:{}", location->function_name(), location->filename(), location->line_number())));
|
||||
break;
|
||||
case HeapRoot::Type::RootVector:
|
||||
node.set("root"sv, "RootVector"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue