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

LibJS: Remove String.prototype.length

A string's length property is supposed to be a regular non-writable,
non-enumerable, non-configurable property on the StringObject instead.
This commit is contained in:
Linus Groh 2021-06-06 16:46:14 +01:00 committed by Andreas Kling
parent fc2673d111
commit 8d7ec28924
5 changed files with 11 additions and 12 deletions

View file

@ -17,6 +17,7 @@ public:
static StringObject* create(GlobalObject&, PrimitiveString&);
StringObject(PrimitiveString&, Object& prototype);
virtual void initialize(GlobalObject&) override;
virtual ~StringObject() override;
const PrimitiveString& primitive_string() const { return m_string; }