summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/Exception.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/Runtime/Exception.cpp
parent8d9c5a8e70b6802e0d4469526bd15a7649a51587 (diff)
downloadserenity-699e1fdc07e69419f17faa191930b5d604a9640b.zip
LibJS: Eliminate some (unnecessary) Vector copies
Diffstat (limited to 'Libraries/LibJS/Runtime/Exception.cpp')
-rw-r--r--Libraries/LibJS/Runtime/Exception.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/Exception.cpp b/Libraries/LibJS/Runtime/Exception.cpp
index 99f7fbd789..a92ec65c2b 100644
--- a/Libraries/LibJS/Runtime/Exception.cpp
+++ b/Libraries/LibJS/Runtime/Exception.cpp
@@ -32,7 +32,7 @@ namespace JS {
Exception::Exception(Value value)
: m_value(value)
{
- auto call_stack = interpreter().call_stack();
+ auto& call_stack = interpreter().call_stack();
for (ssize_t i = call_stack.size() - 1; i >= 0; --i) {
auto function_name = call_stack[i].function_name;
if (function_name.is_empty())