LibJS: Implement the GetPrototypeFromConstructor() abstract operation

This commit is contained in:
Linus Groh 2021-06-19 22:27:53 +01:00 committed by Andreas Kling
commit 500818e73d
Notes: sideshowbarker 2024-07-18 11:59:35 +09:00
2 changed files with 17 additions and 0 deletions

View file

@ -18,5 +18,6 @@ size_t length_of_array_like(GlobalObject&, Object const&);
MarkedValueList create_list_from_array_like(GlobalObject&, Value, AK::Function<Result<void, ErrorType>(Value)> = {});
Function* species_constructor(GlobalObject&, Object const&, Function& default_constructor);
GlobalObject* get_function_realm(GlobalObject&, Function const&);
Object* get_prototype_from_constructor(GlobalObject&, Function const& constructor, Object* (GlobalObject::*intrinsic_default_prototype)());
}