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

LibJS: Stop inheriting from Set in SetPrototype

This makes sure that is<Set> checks done on the Set prototype instead of
on Set instances return false, thereby emulating the behaviour of the
RequireInternalSlot abstract operation.
This commit is contained in:
Idan Horowitz 2021-06-09 19:01:45 +03:00 committed by Linus Groh
parent 5d57384bc4
commit f437793788
4 changed files with 18 additions and 18 deletions

View file

@ -41,8 +41,6 @@ public:
explicit Set(Object& prototype);
virtual ~Set() override;
static Set* typed_this(VM&, GlobalObject&);
HashTable<Value, ValueTraits> const& values() const { return m_values; };
HashTable<Value, ValueTraits>& values() { return m_values; };