Unzip initialization lists and constructors in JSCell hierarchy (5/7)
[WebKit-https.git] / Source / JavaScriptCore / runtime / NumberPrototype.cpp
index 5276817..9b5762b 100644 (file)
@@ -73,6 +73,12 @@ ASSERT_CLASS_FITS_IN_CELL(NumberPrototype);
 NumberPrototype::NumberPrototype(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
     : NumberObject(exec->globalData(), structure)
 {
+    finishCreation(exec, globalObject);
+}
+
+void NumberPrototype::finishCreation(ExecState* exec, JSGlobalObject* globalObject)
+{
+    Base::finishCreation(exec->globalData());
     setInternalValue(exec->globalData(), jsNumber(0));
 
     ASSERT(inherits(&s_info));