mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:37:44 +00:00
LibJS: Convert set_immutable_prototype() to ThrowCompletionOr
This commit is contained in:
parent
a7b1c7eb16
commit
0a49a2db60
4 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue