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