NativeErrorPrototype.h [plain text]
#ifndef NativeErrorPrototype_h
#define NativeErrorPrototype_h
#include "ErrorPrototype.h"
namespace JSC {
class NativeErrorConstructor;
class NativeErrorPrototype : public ErrorPrototype {
private:
NativeErrorPrototype(VM&, Structure*);
public:
typedef ErrorPrototype Base;
static NativeErrorPrototype* create(VM& vm, JSGlobalObject* globalObject, Structure* structure, const String& name, NativeErrorConstructor* constructor)
{
NativeErrorPrototype* prototype = new (NotNull, allocateCell<NativeErrorPrototype>(vm.heap)) NativeErrorPrototype(vm, structure);
prototype->finishCreation(vm, globalObject, name, constructor);
return prototype;
}
protected:
void finishCreation(VM&, JSGlobalObject*, const String& nameAndMessage, NativeErrorConstructor*);
};
}
#endif // NativeErrorPrototype_h