1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibJS: Convert internal_prevent_extensions() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-09-29 00:13:41 +01:00
parent 9b4362f10a
commit 73bae7d779
12 changed files with 22 additions and 30 deletions

View file

@ -26,7 +26,7 @@ public:
virtual JS::ThrowCompletionOr<Object*> internal_get_prototype_of() const override;
virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(Object* prototype) override;
virtual JS::ThrowCompletionOr<bool> internal_is_extensible() const override;
virtual bool internal_prevent_extensions() override;
virtual JS::ThrowCompletionOr<bool> internal_prevent_extensions() override;
virtual Optional<JS::PropertyDescriptor> internal_get_own_property(JS::PropertyName const& name) const override;
virtual bool internal_define_own_property(JS::PropertyName const& name, JS::PropertyDescriptor const& descriptor) override;
virtual bool internal_has_property(JS::PropertyName const& name) const override;