mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibWasm: Avoid making StringView of temporary ByteBuffer
This commit is contained in:
committed by
Idan Horowitz
parent
2223f22590
commit
6c8eea6f5e
@@ -88,7 +88,8 @@ void Configuration::dump_stack()
|
||||
{
|
||||
DuplexMemoryStream memory_stream;
|
||||
Printer { memory_stream }.print(vs...);
|
||||
dbgln(format.view(), StringView(memory_stream.copy_into_contiguous_buffer()).trim_whitespace());
|
||||
ByteBuffer buffer = memory_stream.copy_into_contiguous_buffer();
|
||||
dbgln(format.view(), StringView(buffer).trim_whitespace());
|
||||
};
|
||||
for (auto const& entry : stack().entries()) {
|
||||
entry.visit(
|
||||
|
||||
Reference in New Issue
Block a user