mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:38:10 +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
|
@ -140,7 +140,7 @@ JS_DEFINE_NATIVE_FUNCTION(ObjectConstructor::get_prototype_of)
|
|||
return {};
|
||||
|
||||
// 2. Return ? obj.[[GetPrototypeOf]]().
|
||||
return object->internal_get_prototype_of();
|
||||
return TRY_OR_DISCARD(object->internal_get_prototype_of());
|
||||
}
|
||||
|
||||
// 20.1.2.21 Object.setPrototypeOf ( O, proto ), https://tc39.es/ecma262/#sec-object.setprototypeof
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue