Remove m_subclassData from JSArray, move the attribute to subclass as needed
[WebKit-https.git] / Source / WebCore / bridge / runtime_array.cpp
index c15c7cb..f0c5080 100644 (file)
@@ -39,6 +39,7 @@ const ClassInfo RuntimeArray::s_info = { "RuntimeArray", &JSArray::s_info, 0, 0,
 
 RuntimeArray::RuntimeArray(ExecState* exec, Structure* structure)
     : JSArray(exec->globalData(), structure)
+    , m_array(0)
 {
 }
 
@@ -46,7 +47,7 @@ void RuntimeArray::finishCreation(JSGlobalData& globalData, Bindings::Array* arr
 {
     Base::finishCreation(globalData);
     ASSERT(inherits(&s_info));
-    setSubclassData(array);
+    m_array = array;
 }
 
 RuntimeArray::~RuntimeArray()