From 82af69376bc16586648320cd5e2de3c94cb3c753 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 28 Sep 2021 21:59:11 +0200 Subject: LibJS: Avoid unnecessary HashMap copy in FunctionEnvironment --- Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibJS/Runtime/FunctionEnvironment.cpp') 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 variables) - : DeclarativeEnvironment(variables, parent_scope) + : DeclarativeEnvironment(move(variables), parent_scope) { } -- cgit v1.2.3