summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Console.cpp
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-09-08 13:17:37 +0430
committerAndreas Kling <kling@serenityos.org>2020-09-08 13:43:03 +0200
commit699e1fdc07e69419f17faa191930b5d604a9640b (patch)
treef9ca82fd03e0910f7189c3d742aa9cbba2a5e109 /Libraries/LibJS/Console.cpp
parent8d9c5a8e70b6802e0d4469526bd15a7649a51587 (diff)
downloadserenity-699e1fdc07e69419f17faa191930b5d604a9640b.zip
LibJS: Eliminate some (unnecessary) Vector copies
Diffstat (limited to 'Libraries/LibJS/Console.cpp')
-rw-r--r--Libraries/LibJS/Console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Console.cpp b/Libraries/LibJS/Console.cpp
index 5033ed25c9..cd40739ebc 100644
--- a/Libraries/LibJS/Console.cpp
+++ b/Libraries/LibJS/Console.cpp
@@ -123,7 +123,7 @@ bool Console::counter_reset(String label)
Vector<String> ConsoleClient::get_trace() const
{
Vector<String> trace;
- auto call_stack = m_console.interpreter().call_stack();
+ auto& call_stack = m_console.interpreter().call_stack();
// -2 to skip the console.trace() call frame
for (ssize_t i = call_stack.size() - 2; i >= 0; --i)
trace.append(call_stack[i].function_name);