| Index: third_party/WebKit/Source/bindings/core/v8/ExceptionStatePlaceholder.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ExceptionStatePlaceholder.cpp b/third_party/WebKit/Source/bindings/core/v8/ExceptionStatePlaceholder.cpp
|
| index c510a12875f17262fa0efb4d2a5f03de8a1b8a52..8b20f57427d0309eb76e2fcb1b5abdab6aae3fb5 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ExceptionStatePlaceholder.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionStatePlaceholder.cpp
|
| @@ -35,7 +35,7 @@ namespace blink {
|
| #if ENABLE(ASSERT)
|
|
|
| NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* file, int line)
|
| - : ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Local<v8::Object>(), 0)
|
| + : ExceptionState(nullptr, ExceptionState::UnknownContext, nullptr, nullptr)
|
| , m_file(file)
|
| , m_line(line) { }
|
|
|
| @@ -44,9 +44,9 @@ void NoExceptionStateAssertionChecker::throwDOMException(const ExceptionCode&, c
|
| DCHECK_AT(false, m_file, m_line) << "DOMExeption should not be thrown.";
|
| }
|
|
|
| -void NoExceptionStateAssertionChecker::throwTypeError(const String&)
|
| +void NoExceptionStateAssertionChecker::throwRangeError(const String& message)
|
| {
|
| - DCHECK_AT(false, m_file, m_line) << "TypeError should not be thrown.";
|
| + DCHECK_AT(false, m_file, m_line) << "RangeError should not be thrown.";
|
| }
|
|
|
| void NoExceptionStateAssertionChecker::throwSecurityError(const String&, const String&)
|
| @@ -54,6 +54,16 @@ void NoExceptionStateAssertionChecker::throwSecurityError(const String&, const S
|
| DCHECK_AT(false, m_file, m_line) << "SecurityError should not be thrown.";
|
| }
|
|
|
| +void NoExceptionStateAssertionChecker::throwTypeError(const String&)
|
| +{
|
| + DCHECK_AT(false, m_file, m_line) << "TypeError should not be thrown.";
|
| +}
|
| +
|
| +void NoExceptionStateAssertionChecker::rethrowV8Exception(v8::Local<v8::Value>)
|
| +{
|
| + DCHECK_AT(false, m_file, m_line) << "An exception should not be rethrown.";
|
| +}
|
| +
|
| #endif
|
|
|
| } // namespace blink
|
|
|