mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00: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: https://github.com/SerenityOS/serenity/commit/e118ad3273b 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;
|
||||
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…
Reference in a new issue