mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibJS: Avoid unnecessary FlyString(String) churn in Reference ctors
This commit is contained in:
parent
1fb50d823d
commit
46e61d208b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue