mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:07:35 +00:00
LibJS: Convert internal_is_extensible() to ThrowCompletionOr
This commit is contained in:
parent
8c81c84c18
commit
9b4362f10a
9 changed files with 18 additions and 22 deletions
|
@ -133,7 +133,7 @@ JS::ThrowCompletionOr<bool> LocationObject::internal_set_prototype_of(Object* pr
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/history.html#location-isextensible
|
||||
bool LocationObject::internal_is_extensible() const
|
||||
JS::ThrowCompletionOr<bool> LocationObject::internal_is_extensible() const
|
||||
{
|
||||
// 1. Return true.
|
||||
return true;
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
virtual ~LocationObject() override;
|
||||
|
||||
virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(Object* prototype) override;
|
||||
virtual bool internal_is_extensible() const override;
|
||||
virtual JS::ThrowCompletionOr<bool> internal_is_extensible() const override;
|
||||
virtual bool internal_prevent_extensions() override;
|
||||
|
||||
// FIXME: There should also be a custom [[GetPrototypeOf]], [[GetOwnProperty]], [[DefineOwnProperty]], [[Get]], [[Set]], [[Delete]] and [[OwnPropertyKeys]],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue