1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibJS: Implement Object.isFrozen() and Object.isSealed()

This commit is contained in:
Linus Groh 2021-04-06 22:45:12 +02:00 committed by Andreas Kling
parent 9af07c7803
commit f3264b0dbd
7 changed files with 105 additions and 0 deletions

View file

@ -135,6 +135,7 @@ public:
virtual bool prevent_extensions();
bool set_integrity_level(IntegrityLevel);
bool test_integrity_level(IntegrityLevel);
virtual Value value_of() const { return Value(const_cast<Object*>(this)); }
virtual Value ordinary_to_primitive(Value::PreferredType preferred_type) const;