mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
LibJS: Avoid unnecessary FlyString(String) churn in Reference ctors
This commit is contained in:
parent
1fb50d823d
commit
46e61d208b
Notes:
sideshowbarker
2024-07-18 21:11:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/46e61d208bd
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…
Reference in a new issue