diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/StringObject.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/StringObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/StringObject.cpp b/Libraries/LibJS/Runtime/StringObject.cpp index cb67dbbc27..0be4afdfad 100644 --- a/Libraries/LibJS/Runtime/StringObject.cpp +++ b/Libraries/LibJS/Runtime/StringObject.cpp @@ -41,9 +41,9 @@ StringObject* StringObject::create(GlobalObject& global_object, PrimitiveString& } StringObject::StringObject(PrimitiveString& string, Object& prototype) - : m_string(string) + : Object(&prototype) + , m_string(string) { - set_prototype(&prototype); } StringObject::~StringObject() |