| Index: Source/bindings/v8/ExceptionState.h
|
| diff --git a/Source/bindings/v8/ExceptionState.h b/Source/bindings/v8/ExceptionState.h
|
| index 0642a0aa6fff8b8a48233811a048a4217cf1fc0a..26bae40f6941d8cc7c6524bd98e339d6f5e77e6a 100644
|
| --- a/Source/bindings/v8/ExceptionState.h
|
| +++ b/Source/bindings/v8/ExceptionState.h
|
| @@ -48,10 +48,13 @@ public:
|
| : m_code(0)
|
| , m_isolate(isolate) { }
|
|
|
| - virtual void throwDOMException(const ExceptionCode&, const String& message = String());
|
| + virtual void throwDOMException(const ExceptionCode&, const String& message);
|
| virtual void throwTypeError(const String& message = String());
|
| virtual void throwSecurityError(const String& sanitizedMessage, const String& unsanitizedMessage = String());
|
|
|
| + // Please don't use this method. Use ::throwDOMException, and pass in a useful exception message.
|
| + virtual void throwUninformativeAndGenericDOMException(const ExceptionCode& ec) { throwDOMException(ec, String()); };
|
| +
|
| bool hadException() const { return !m_exception.isEmpty() || m_code; }
|
| void clearException();
|
|
|
| @@ -62,7 +65,7 @@ public:
|
| if (m_exception.isEmpty()) {
|
| if (!m_code)
|
| return false;
|
| - throwDOMException(m_code);
|
| + throwUninformativeAndGenericDOMException(m_code);
|
| }
|
|
|
| V8ThrowException::throwError(m_exception.newLocal(m_isolate), m_isolate);
|
| @@ -82,7 +85,7 @@ private:
|
| class TrackExceptionState : public ExceptionState {
|
| public:
|
| TrackExceptionState(): ExceptionState(0) { }
|
| - virtual void throwDOMException(const ExceptionCode&, const String& message = String()) OVERRIDE FINAL;
|
| + virtual void throwDOMException(const ExceptionCode&, const String& message) OVERRIDE FINAL;
|
| virtual void throwTypeError(const String& message = String()) OVERRIDE FINAL;
|
| virtual void throwSecurityError(const String& sanitizedMessage, const String& unsanitizedMessage = String()) OVERRIDE FINAL;
|
| };
|
|
|