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:
parent
8d9c5a8e70
commit
699e1fdc07
4 changed files with 11 additions and 11 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue