1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

LibWasm: Port Wasm::Printer to Core::Stream

This commit is contained in:
Tim Schumacher 2023-01-21 10:29:21 +01:00 committed by Ali Mohammad Pur
parent 4bad4dc8d5
commit 409fb0fe79
4 changed files with 17 additions and 19 deletions

View file

@ -34,7 +34,7 @@ Optional<OpCode> instruction_from_name(StringView name)
void Printer::print_indent()
{
for (size_t i = 0; i < m_indent; ++i)
m_stream.write_or_error(" "sv.bytes());
m_stream.write_entire_buffer(" "sv.bytes()).release_value_but_fixme_should_propagate_errors();
}
void Printer::print(Wasm::BlockType const& type)