| 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 a446114b11798ba8f25ee03c6dd238db98817c89..dc54c00ac2d0fa93ae4743470b55446b19dc93e6 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
|
| @@ -172,50 +172,17 @@ NonThrowableExceptionState::NonThrowableExceptionState(const char* file,
|
| m_file(file),
|
| m_line(line) {}
|
|
|
| -void NonThrowableExceptionState::throwDOMException(ExceptionCode ec,
|
| - const String& message) {
|
| - DCHECK_AT(false, m_file, m_line) << "DOMExeption should not be thrown.";
|
| -}
|
| -
|
| -void NonThrowableExceptionState::throwRangeError(const String& message) {
|
| - DCHECK_AT(false, m_file, m_line) << "RangeError should not be thrown.";
|
| -}
|
| -
|
| -void NonThrowableExceptionState::throwSecurityError(
|
| - const String& sanitizedMessage,
|
| - const String&) {
|
| - DCHECK_AT(false, m_file, m_line) << "SecurityError should not be thrown.";
|
| -}
|
| -
|
| -void NonThrowableExceptionState::throwTypeError(const String& message) {
|
| - DCHECK_AT(false, m_file, m_line) << "TypeError should not be thrown.";
|
| -}
|
| -
|
| -void NonThrowableExceptionState::rethrowV8Exception(v8::Local<v8::Value>) {
|
| +void NonThrowableExceptionState::setException(ExceptionCode ec,
|
| + const String& message,
|
| + v8::Local<v8::Value> exception) {
|
| DCHECK_AT(false, m_file, m_line) << "An exception should not be rethrown.";
|
| }
|
|
|
| -void DummyExceptionStateForTesting::throwDOMException(ExceptionCode ec,
|
| - const String& message) {
|
| - setException(ec, message, v8::Local<v8::Value>());
|
| -}
|
| -
|
| -void DummyExceptionStateForTesting::throwRangeError(const String& message) {
|
| - setException(V8RangeError, message, v8::Local<v8::Value>());
|
| -}
|
| -
|
| -void DummyExceptionStateForTesting::throwSecurityError(
|
| - const String& sanitizedMessage,
|
| - const String&) {
|
| - setException(SecurityError, sanitizedMessage, v8::Local<v8::Value>());
|
| -}
|
| -
|
| -void DummyExceptionStateForTesting::throwTypeError(const String& message) {
|
| - setException(V8TypeError, message, v8::Local<v8::Value>());
|
| -}
|
| -
|
| -void DummyExceptionStateForTesting::rethrowV8Exception(v8::Local<v8::Value>) {
|
| - setException(kRethrownException, String(), v8::Local<v8::Value>());
|
| +void DummyExceptionStateForTesting::setException(
|
| + ExceptionCode ec,
|
| + const String& message,
|
| + v8::Local<v8::Value> exception) {
|
| + // Ignored.
|
| }
|
|
|
| } // namespace blink
|
|
|