mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 01:08:56 +00:00
LibWasm: Close byte list for active data segments in WAT output
LibWasm/Printer no longer leaves the byte list in active data segments unclosed
This commit is contained in:
parent
c53d9d7122
commit
9e11fa0ac6
Notes:
github-actions[bot]
2025-09-06 04:22:01 +00:00
Author: https://github.com/shlyakpavel
Commit: 9e11fa0ac6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6087
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,7 @@ void Printer::print(Wasm::DataSection::Data const& data)
|
||||||
print_indent();
|
print_indent();
|
||||||
print("(active init {}xu8 (", value.init.size());
|
print("(active init {}xu8 (", value.init.size());
|
||||||
print("{}", ByteString::join(' ', value.init, "{:x}"sv));
|
print("{}", ByteString::join(' ', value.init, "{:x}"sv));
|
||||||
print("\n");
|
print(")\n");
|
||||||
{
|
{
|
||||||
TemporaryChange change { m_indent, m_indent + 1 };
|
TemporaryChange change { m_indent, m_indent + 1 };
|
||||||
print_indent();
|
print_indent();
|
||||||
|
@ -161,6 +161,8 @@ void Printer::print(Wasm::DataSection::Data const& data)
|
||||||
print_indent();
|
print_indent();
|
||||||
print("(index {})\n", value.index.value());
|
print("(index {})\n", value.index.value());
|
||||||
}
|
}
|
||||||
|
print_indent();
|
||||||
|
print(")\n");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
print_indent();
|
print_indent();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue