| Index: Source/bindings/v8/ExceptionState.cpp
|
| diff --git a/Source/bindings/v8/ExceptionState.cpp b/Source/bindings/v8/ExceptionState.cpp
|
| index 62fa19248d410340be90a4b6ee447c541c36e4ea..5459ee6702f3b6e095c37914136d3a08fb1a026b 100644
|
| --- a/Source/bindings/v8/ExceptionState.cpp
|
| +++ b/Source/bindings/v8/ExceptionState.cpp
|
| @@ -50,6 +50,13 @@ void ExceptionState::throwDOMException(const ExceptionCode& ec, const String& me
|
| setException(V8ThrowException::createDOMException(ec, message, m_isolate));
|
| }
|
|
|
| +void ExceptionState::throwSecurityError(const String& sanitizedMessage, const String& unsanitizedMessage)
|
| +{
|
| + ASSERT(m_isolate);
|
| + m_code = SecurityError;
|
| + setException(V8ThrowException::createDOMException(SecurityError, sanitizedMessage, unsanitizedMessage, m_isolate));
|
| +}
|
| +
|
| void ExceptionState::setException(v8::Handle<v8::Value> exception)
|
| {
|
| // FIXME: Assert that exception is not empty?
|
|
|