- explicit ErrorInstance(JSGlobalData*, Structure*);
- explicit ErrorInstance(JSGlobalData*, Structure*, const UString&);
+ explicit ErrorInstance(JSGlobalData&, Structure*);
+
+ void finishCreation(JSGlobalData& globalData, const UString& message)
+ {
+ Base::finishCreation(globalData);
+ ASSERT(inherits(&s_info));
+ if (!message.isNull())
+ putDirect(globalData, globalData.propertyNames->message, jsString(&globalData, message), DontEnum);
+ }