class MathObject : public JSNonFinalObject {
private:
- MathObject(ExecState*, JSGlobalObject*, Structure*);
+ MathObject(JSGlobalObject*, Structure*);
public:
typedef JSNonFinalObject Base;
static MathObject* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
{
- return new (allocateCell<MathObject>(*exec->heap())) MathObject(exec, globalObject, structure);
+ MathObject* object = new (allocateCell<MathObject>(*exec->heap())) MathObject(globalObject, structure);
+ object->finishCreation(exec, globalObject);
+ return object;
}
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);