mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
wasm: Avoid making StringView of temporary ByteBuffer
This commit is contained in:
parent
d9c1162a20
commit
e118ad3273
1 changed files with 2 additions and 1 deletions
|
@ -399,7 +399,8 @@ int main(int argc, char* argv[])
|
|||
first = false;
|
||||
else
|
||||
argument_builder.append(", "sv);
|
||||
argument_builder.append(StringView(stream.copy_into_contiguous_buffer()).trim_whitespace());
|
||||
ByteBuffer buffer = stream.copy_into_contiguous_buffer();
|
||||
argument_builder.append(StringView(buffer).trim_whitespace());
|
||||
}
|
||||
dbgln("[wasm runtime] Stub function {} was called with the following arguments: {}", name, argument_builder.to_string());
|
||||
Vector<Wasm::Value> result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue