mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Use FlyString for identifiers
This makes variable and property lookups a lot faster since comparing two FlyStrings is O(1).
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
namespace JS {
|
||||
|
||||
ScriptFunction::ScriptFunction(const ScopeNode& body, Vector<String> parameters)
|
||||
ScriptFunction::ScriptFunction(const ScopeNode& body, Vector<FlyString> parameters)
|
||||
: m_body(body)
|
||||
, m_parameters(move(parameters))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user