summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-21 17:37:57 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-21 21:39:39 +0100
commit46e61d208bd19e5e0e406d94a69e4b582ee32dc5 (patch)
treec9647fd641554ef9314236c5f711866da31e5579
parent1fb50d823d17933a2488c888b7ebb8b340d50a91 (diff)
downloadserenity-46e61d208bd19e5e0e406d94a69e4b582ee32dc5.zip
LibJS: Avoid unnecessary FlyString(String) churn in Reference ctors
-rw-r--r--Userland/Libraries/LibJS/Runtime/Reference.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Reference.h b/Userland/Libraries/LibJS/Runtime/Reference.h
index c81d964440..d5a8010916 100644
--- a/Userland/Libraries/LibJS/Runtime/Reference.h
+++ b/Userland/Libraries/LibJS/Runtime/Reference.h
@@ -43,7 +43,7 @@ public:
}
enum LocalVariableTag { LocalVariable };
- Reference(LocalVariableTag, const String& name, bool strict = false)
+ Reference(LocalVariableTag, const FlyString& name, bool strict = false)
: m_base(js_null())
, m_name(name)
, m_strict(strict)
@@ -52,7 +52,7 @@ public:
}
enum GlobalVariableTag { GlobalVariable };
- Reference(GlobalVariableTag, const String& name, bool strict = false)
+ Reference(GlobalVariableTag, const FlyString& name, bool strict = false)
: m_base(js_null())
, m_name(name)
, m_strict(strict)