summaryrefslogtreecommitdiffstats
path: root/Source/JavaScriptCore/runtime/NativeErrorConstructor.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/NativeErrorConstructor.h')
-rw-r--r--Source/JavaScriptCore/runtime/NativeErrorConstructor.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/runtime/NativeErrorConstructor.h b/Source/JavaScriptCore/runtime/NativeErrorConstructor.h
index 1ff8207..e4978cc 100644
--- a/Source/JavaScriptCore/runtime/NativeErrorConstructor.h
+++ b/Source/JavaScriptCore/runtime/NativeErrorConstructor.h
@@ -33,7 +33,12 @@ namespace JSC {
public:
NativeErrorConstructor(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure> structure, NonNullPassRefPtr<Structure> prototypeStructure, const UString&);
- static const ClassInfo info;
+ static const ClassInfo s_info;
+
+ static PassRefPtr<Structure> createStructure(JSValue prototype)
+ {
+ return Structure::create(prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
+ }
Structure* errorStructure() { return m_errorStructure.get(); }
@@ -41,8 +46,6 @@ namespace JSC {
virtual ConstructType getConstructData(ConstructData&);
virtual CallType getCallData(CallData&);
- virtual const ClassInfo* classInfo() const { return &info; }
-
RefPtr<Structure> m_errorStructure;
};