mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
js: Tighten up ReplConsoleClient::trace() a little bit
Remove a bunch of unnecessary String copying.
This commit is contained in:
parent
e4b9cf9b6c
commit
5c12f3fef0
1 changed files with 2 additions and 2 deletions
|
@ -437,8 +437,8 @@ public:
|
|||
{
|
||||
puts(interpreter().join_arguments().characters());
|
||||
auto trace = interpreter().get_trace();
|
||||
for (auto function_name : trace) {
|
||||
if (String(function_name).is_empty())
|
||||
for (auto& function_name : trace) {
|
||||
if (function_name.is_empty())
|
||||
function_name = "<anonymous>";
|
||||
printf(" -> %s\n", function_name.characters());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue