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:
parent
4bad4dc8d5
commit
409fb0fe79
4 changed files with 17 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue