| Index: third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
|
| index fe50602608ce9a230a6ead4ad27f152cc401d04d..8baa0086f13c4da7b83b4fa02f2d672c72aee047 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
|
| @@ -98,6 +98,15 @@ void ExceptionState::throwException()
|
| V8ThrowException::throwException(m_isolate, m_exception.newLocal(m_isolate));
|
| }
|
|
|
| +void ExceptionState::reportException(ScriptState* scriptState,
|
| + v8::Local<v8::Function> function)
|
| +{
|
| + DCHECK(scriptState->isolate() == m_isolate);
|
| + DCHECK(!m_exception.isEmpty());
|
| + V8ThrowException::reportException(scriptState,
|
| + m_exception.newLocal(m_isolate), m_message, function);
|
| +}
|
| +
|
| void ExceptionState::throwTypeError(const String& message)
|
| {
|
| ASSERT(m_isolate);
|
|
|