mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibJS: Convert internal_get_prototype_of() to ThrowCompletionOr
This commit is contained in:
@@ -212,7 +212,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::get_prototype_of)
|
||||
}
|
||||
|
||||
// 2. Return ? target.[[GetPrototypeOf]]().
|
||||
return target.as_object().internal_get_prototype_of();
|
||||
return TRY_OR_DISCARD(target.as_object().internal_get_prototype_of());
|
||||
}
|
||||
|
||||
// 28.1.8 Reflect.has ( target, propertyKey ), https://tc39.es/ecma262/#sec-reflect.has
|
||||
|
||||
Reference in New Issue
Block a user