summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-28 21:59:11 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-28 22:32:40 +0200
commit82af69376bc16586648320cd5e2de3c94cb3c753 (patch)
tree50407d93dc5c9904d8c3d480091a42eccae48ea9 /Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp
parentd294a3f54a848f3165a71f134b3f09d556e34a11 (diff)
downloadserenity-82af69376bc16586648320cd5e2de3c94cb3c753.zip
LibJS: Avoid unnecessary HashMap copy in FunctionEnvironment
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp b/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp
index d130d8a8e7..9aec5f431a 100644
--- a/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp
+++ b/Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp
@@ -12,7 +12,7 @@
namespace JS {
FunctionEnvironment::FunctionEnvironment(Environment* parent_scope, HashMap<FlyString, Variable> variables)
- : DeclarativeEnvironment(variables, parent_scope)
+ : DeclarativeEnvironment(move(variables), parent_scope)
{
}