Unzip initialization lists and constructors in JSCell hierarchy (6/7)
[WebKit-https.git] / Source / WebCore / bridge / objc / ObjCRuntimeObject.h
index dd73390..2dabfc4 100644 (file)
@@ -42,7 +42,9 @@ public:
         // FIXME: deprecatedGetDOMStructure uses the prototype off of the wrong global object
         // We need to pass in the right global object for "i".
         Structure* structure = WebCore::deprecatedGetDOMStructure<ObjCRuntimeObject>(exec);
-        return new (allocateCell<ObjCRuntimeObject>(*exec->heap())) ObjCRuntimeObject(exec, globalObject, inst, structure);
+        ObjCRuntimeObject* object = new (allocateCell<ObjCRuntimeObject>(*exec->heap())) ObjCRuntimeObject(exec, globalObject, inst, structure);
+        object->finishCreation(globalObject);
+        return object;
     }
 
     virtual ~ObjCRuntimeObject();