mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibWasm: Port Wasm::Printer
to Core::Stream
This commit is contained in:
parent
4bad4dc8d5
commit
409fb0fe79
Notes:
sideshowbarker
2024-07-17 02:08:15 +09:00
Author: https://github.com/timschumi
Commit: 409fb0fe79
Pull-request: https://github.com/SerenityOS/serenity/pull/17119
Reviewed-by: https://github.com/alimpfard
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