1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibJS: Use PropertyName instead of StringOrSymbol in Object::invoke()

This prevents the unnecessary PropertyName -> StringOrSymbol ->
PropertyName conversion.
This commit is contained in:
Idan Horowitz 2021-07-09 23:45:01 +03:00 committed by Linus Groh
parent fd898be51a
commit 56d8098d13
7 changed files with 16 additions and 16 deletions

View file

@ -1201,7 +1201,7 @@ Value Object::ordinary_to_primitive(Value::PreferredType preferred_type) const
return {};
}
Value Object::invoke_internal(const StringOrSymbol& property_name, Optional<MarkedValueList> arguments)
Value Object::invoke_internal(PropertyName const& property_name, Optional<MarkedValueList> arguments)
{
auto& vm = this->vm();
auto property = get(property_name);