1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

LibJS: Eliminate some (unnecessary) Vector copies

This commit is contained in:
AnotherTest 2020-09-08 13:17:37 +04:30 committed by Andreas Kling
parent 8d9c5a8e70
commit 699e1fdc07
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())