| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 ContextType context() const { return m_context; } | 109 ContextType context() const { return m_context; } |
| 110 const char* propertyName() const { return m_propertyName; } | 110 const char* propertyName() const { return m_propertyName; } |
| 111 const char* interfaceName() const { return m_interfaceName; } | 111 const char* interfaceName() const { return m_interfaceName; } |
| 112 | 112 |
| 113 void rethrowV8Exception(v8::Local<v8::Value> value) | 113 void rethrowV8Exception(v8::Local<v8::Value> value) |
| 114 { | 114 { |
| 115 setException(value); | 115 setException(value); |
| 116 } | 116 } |
| 117 | 117 |
| 118 // Might return nullptr. |
| 119 v8::Isolate* isolate() const { return m_isolate; } |
| 120 |
| 118 #if ENABLE(ASSERT) | 121 #if ENABLE(ASSERT) |
| 119 OnStackObjectChecker& getOnStackObjectChecker() { return m_onStackObjectChec
ker; } | 122 OnStackObjectChecker& getOnStackObjectChecker() { return m_onStackObjectChec
ker; } |
| 120 #endif | 123 #endif |
| 121 | 124 |
| 122 protected: | 125 protected: |
| 123 ExceptionCode m_code; | 126 ExceptionCode m_code; |
| 124 ContextType m_context; | 127 ContextType m_context; |
| 125 String m_message; | 128 String m_message; |
| 126 const char* m_propertyName; | 129 const char* m_propertyName; |
| 127 const char* m_interfaceName; | 130 const char* m_interfaceName; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 158 TrackExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0,
v8::Local<v8::Object>(), v8::Isolate::GetCurrent()) { } | 161 TrackExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0,
v8::Local<v8::Object>(), v8::Isolate::GetCurrent()) { } |
| 159 void throwDOMException(const ExceptionCode&, const String& message) override
; | 162 void throwDOMException(const ExceptionCode&, const String& message) override
; |
| 160 void throwTypeError(const String& message = String()) override; | 163 void throwTypeError(const String& message = String()) override; |
| 161 void throwSecurityError(const String& sanitizedMessage, const String& unsani
tizedMessage = String()) override; | 164 void throwSecurityError(const String& sanitizedMessage, const String& unsani
tizedMessage = String()) override; |
| 162 void throwRangeError(const String& message) override; | 165 void throwRangeError(const String& message) override; |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 } // namespace blink | 168 } // namespace blink |
| 166 | 169 |
| 167 #endif // ExceptionState_h | 170 #endif // ExceptionState_h |
| OLD | NEW |