mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +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:
parent
fc2673d111
commit
8d7ec28924
5 changed files with 11 additions and 12 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue