summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-05 02:49:55 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-05 02:49:55 +0200
commita0acb6f058c52cc9baf6bc0f2cc813141ac9fc8a (patch)
tree4fa75daabd8c74143a9f40b2dc0114c6dc377def /Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp
parent77fa33e61acc259096bbf99e828aa8e008696a55 (diff)
downloadserenity-a0acb6f058c52cc9baf6bc0f2cc813141ac9fc8a.zip
LibJS: Fix accidental west-const in ArgumentsObject
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp b/Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp
index c49d9719b8..aa8190098a 100644
--- a/Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp
@@ -33,7 +33,7 @@ void ArgumentsObject::visit_edges(Cell::Visitor& visitor)
}
// 10.4.4.3 [[Get]] ( P, Receiver ), https://tc39.es/ecma262/#sec-arguments-exotic-objects-get-p-receiver
-Value ArgumentsObject::internal_get(const PropertyName& property_name, Value receiver) const
+Value ArgumentsObject::internal_get(PropertyName const& property_name, Value receiver) const
{
// 1. Let map be args.[[ParameterMap]].
auto& map = *m_parameter_map;