LibJS: Add the same Object::invoke() overloads as VM::call()

This commit is contained in:
Linus Groh 2021-03-14 12:01:18 +01:00 committed by Andreas Kling
commit 6d2d8d091f
Notes: sideshowbarker 2024-07-18 21:22:36 +09:00
2 changed files with 23 additions and 2 deletions

View file

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