Index: Source/bindings/v8/ExceptionState.cpp |
diff --git a/Source/bindings/v8/ExceptionState.cpp b/Source/bindings/v8/ExceptionState.cpp |
index 77c9103d7be7afe21926f028d6d315689b8af907..37deb8271e68fb117f3141b275d1d729b326f2c2 100644 |
--- a/Source/bindings/v8/ExceptionState.cpp |
+++ b/Source/bindings/v8/ExceptionState.cpp |
@@ -83,6 +83,24 @@ void ExceptionState::throwTypeError(const String& message) |
setException(V8ThrowException::createTypeError(addExceptionContext(message), m_isolate)); |
} |
+void NonThrowableExceptionState::throwDOMException(const ExceptionCode& ec, const String& message) |
+{ |
+ ASSERT_NOT_REACHED(); |
+ m_code = ec; |
+} |
+ |
+void NonThrowableExceptionState::throwTypeError(const String&) |
+{ |
+ ASSERT_NOT_REACHED(); |
+ m_code = TypeError; |
+} |
+ |
+void NonThrowableExceptionState::throwSecurityError(const String&, const String&) |
+{ |
+ ASSERT_NOT_REACHED(); |
+ m_code = SecurityError; |
+} |
+ |
void TrackExceptionState::throwDOMException(const ExceptionCode& ec, const String& message) |
{ |
m_code = ec; |