+ static ErrorConstructor* create(VM& vm, Structure* structure, ErrorPrototype* errorPrototype)
+ {
+ ErrorConstructor* constructor = new (NotNull, allocateCell<ErrorConstructor>(vm.heap)) ErrorConstructor(vm, structure);
+ constructor->finishCreation(vm, errorPrototype);
+ return constructor;
+ }
+
+ DECLARE_INFO;
+
+ static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
+ {
+ return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
+ }
+
+ protected:
+ void finishCreation(VM&, ErrorPrototype*);
+