X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/9dae56ea45a0f5f8136a5c93d6f3a7f99399ca73..4be4e30906bcb8ee30b4d189205cb70bad6707ce:/runtime/ErrorInstance.cpp diff --git a/runtime/ErrorInstance.cpp b/runtime/ErrorInstance.cpp index 2e2cdce..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(PassRefPtr structure) - : JSObject(structure) +ErrorInstance::ErrorInstance(VM& vm, Structure* structure) + : JSNonFinalObject(vm, structure) + , m_appendSourceToMessage(false) { }