mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibJS: Convert internal_get_prototype_of() to ThrowCompletionOr
This commit is contained in:
parent
c8bf7f9c41
commit
5148150e1c
14 changed files with 48 additions and 70 deletions
|
@ -35,7 +35,7 @@ Value FunctionEnvironment::get_super_base() const
|
|||
auto home_object = m_function_object->home_object();
|
||||
if (!home_object)
|
||||
return js_undefined();
|
||||
return home_object->internal_get_prototype_of();
|
||||
return TRY_OR_DISCARD(home_object->internal_get_prototype_of());
|
||||
}
|
||||
|
||||
// 9.1.1.3.2 HasThisBinding ( ), https://tc39.es/ecma262/#sec-function-environment-records-hasthisbinding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue