| Index: Source/core/dom/ErrorEvent.cpp
|
| diff --git a/Source/core/dom/ErrorEvent.cpp b/Source/core/dom/ErrorEvent.cpp
|
| index db11e534da322ceb9441137f84bf18ebca988f0f..3558b84ae85c751471f2f4ab9c4ca87baa62ce25 100644
|
| --- a/Source/core/dom/ErrorEvent.cpp
|
| +++ b/Source/core/dom/ErrorEvent.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "config.h"
|
| #include "core/dom/ErrorEvent.h"
|
|
|
| +#include "bindings/v8/ScriptValue.h"
|
| #include "core/dom/EventNames.h"
|
|
|
| namespace WebCore {
|
| @@ -53,18 +54,21 @@ ErrorEvent::ErrorEvent(const AtomicString& type, const ErrorEventInit& initializ
|
| , m_fileName(initializer.filename)
|
| , m_lineNumber(initializer.lineno)
|
| , m_columnNumber(initializer.column)
|
| + , m_error(initializer.error)
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
|
|
| -ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber)
|
| +ErrorEvent::ErrorEvent(const String& message, const String& fileName, unsigned lineNumber, unsigned columnNumber, const ScriptValue& error)
|
| : Event(eventNames().errorEvent, false, true)
|
| , m_message(message)
|
| , m_fileName(fileName)
|
| , m_lineNumber(lineNumber)
|
| , m_columnNumber(columnNumber)
|
| + , m_error(error)
|
| {
|
| ScriptWrappable::init(this);
|
| +class ScriptValue;
|
| }
|
|
|
| ErrorEvent::~ErrorEvent()
|
|
|