mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibJS: Add the same Object::invoke() overloads as VM::call()
This commit is contained in:
parent
6cf8e3c980
commit
6d2d8d091f
Notes:
sideshowbarker
2024-07-18 21:22:36 +09:00
Author: https://github.com/linusg
Commit: 6d2d8d091f
Pull-request: https://github.com/SerenityOS/serenity/pull/5781
2 changed files with 23 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue