1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

LibWeb: Implement some custom JS internal overrides for Location

As required by the spec. Note that this isn't the full suite of
overrides.
This commit is contained in:
Luke Wilde 2021-09-12 14:54:17 +01:00 committed by Andreas Kling
parent 7991077284
commit ee5bac0891
2 changed files with 27 additions and 2 deletions

View file

@ -20,6 +20,13 @@ public:
virtual void initialize(JS::GlobalObject&) override;
virtual ~LocationObject() override;
virtual bool internal_set_prototype_of(Object* prototype) override;
virtual 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]],
// but we don't have the infrastructure in place to implement them yet.
private:
JS_DECLARE_NATIVE_FUNCTION(reload);