mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
wasm: Avoid making StringView of temporary ByteBuffer
This commit is contained in:
parent
d9c1162a20
commit
e118ad3273
Notes:
sideshowbarker
2024-07-18 04:17:29 +09:00
Author: https://github.com/BenWiederhake
Commit: e118ad3273
Pull-request: https://github.com/SerenityOS/serenity/pull/9946
Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 2 additions and 1 deletions
|
@ -399,7 +399,8 @@ int main(int argc, char* argv[])
|
||||||
first = false;
|
first = false;
|
||||||
else
|
else
|
||||||
argument_builder.append(", "sv);
|
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());
|
dbgln("[wasm runtime] Stub function {} was called with the following arguments: {}", name, argument_builder.to_string());
|
||||||
Vector<Wasm::Value> result;
|
Vector<Wasm::Value> result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue