X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/f9bf01c6616d5ddcf65b13b33cedf9e387ff7a63..4be4e30906bcb8ee30b4d189205cb70bad6707ce:/runtime/ErrorInstance.cpp?ds=sidebyside diff --git a/runtime/ErrorInstance.cpp b/runtime/ErrorInstance.cpp index 1cdb87a..e8f7ac1 100644 --- a/runtime/ErrorInstance.cpp +++ b/runtime/ErrorInstance.cpp @@ -21,12 +21,18 @@ #include "config.h" #include "ErrorInstance.h" +#include "JSScope.h" +#include "Operations.h" + namespace JSC { -const ClassInfo ErrorInstance::info = { "Error", 0, 0, 0 }; +ASSERT_HAS_TRIVIAL_DESTRUCTOR(ErrorInstance); + +const ClassInfo ErrorInstance::s_info = { "Error", &JSNonFinalObject::s_info, 0, 0, CREATE_METHOD_TABLE(ErrorInstance) }; -ErrorInstance::ErrorInstance(NonNullPassRefPtr structure) - : JSObject(structure) +ErrorInstance::ErrorInstance(VM& vm, Structure* structure) + : JSNonFinalObject(vm, structure) + , m_appendSourceToMessage(false) { }