]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/ErrorInstance.cpp
JavaScriptCore-1097.3.tar.gz
[apple/javascriptcore.git] / runtime / ErrorInstance.cpp
index 2e2cdce9360d396552db898f0ca68821e59142e3..91a6fc40eab8117d6c51c90fb2d083aeb38ccb8c 100644 (file)
 
 namespace JSC {
 
-const ClassInfo ErrorInstance::info = { "Error", 0, 0, 0 };
+ASSERT_HAS_TRIVIAL_DESTRUCTOR(ErrorInstance);
 
-ErrorInstance::ErrorInstance(PassRefPtr<Structure> structure)
-    : JSObject(structure)
+const ClassInfo ErrorInstance::s_info = { "Error", &JSNonFinalObject::s_info, 0, 0, CREATE_METHOD_TABLE(ErrorInstance) };
+
+ErrorInstance::ErrorInstance(JSGlobalData& globalData, Structure* structure)
+    : JSNonFinalObject(globalData, structure)
+    , m_appendSourceToMessage(false)
 {
 }