1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 01:27:44 +00:00

LibJS: Convert set_immutable_prototype() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-10-03 19:52:13 +01:00
parent a7b1c7eb16
commit 0a49a2db60
4 changed files with 5 additions and 4 deletions

View file

@ -141,7 +141,7 @@ JS_DEFINE_NATIVE_FUNCTION(LocationObject::replace)
JS::ThrowCompletionOr<bool> LocationObject::internal_set_prototype_of(Object* prototype)
{
// 1. Return ! SetImmutablePrototype(this, V).
return set_immutable_prototype(prototype);
return MUST(set_immutable_prototype(prototype));
}
// https://html.spec.whatwg.org/multipage/history.html#location-isextensible