LibJS: Eliminate some (unnecessary) Vector copies

This commit is contained in:
AnotherTest 2020-09-08 13:17:37 +04:30 committed by Andreas Kling
commit 699e1fdc07
Notes: sideshowbarker 2024-07-19 02:50:37 +09:00
4 changed files with 11 additions and 11 deletions

View file

@ -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())