mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:47:34 +00:00
LibWasm: Avoid making StringView of temporary ByteBuffer
This commit is contained in:
parent
2223f22590
commit
6c8eea6f5e
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@ void Configuration::dump_stack()
|
||||||
{
|
{
|
||||||
DuplexMemoryStream memory_stream;
|
DuplexMemoryStream memory_stream;
|
||||||
Printer { memory_stream }.print(vs...);
|
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()) {
|
for (auto const& entry : stack().entries()) {
|
||||||
entry.visit(
|
entry.visit(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue