| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return true; | 96 return true; |
| 97 } | 97 } |
| 98 | 98 |
| 99 // This method clears out the exception which |this| has. | 99 // This method clears out the exception which |this| has. |
| 100 ScriptPromise reject(ScriptState*); | 100 ScriptPromise reject(ScriptState*); |
| 101 | 101 |
| 102 Context context() const { return m_context; } | 102 Context context() const { return m_context; } |
| 103 const char* propertyName() const { return m_propertyName; } | 103 const char* propertyName() const { return m_propertyName; } |
| 104 const char* interfaceName() const { return m_interfaceName; } | 104 const char* interfaceName() const { return m_interfaceName; } |
| 105 | 105 |
| 106 v8::Isolate* isolate() const |
| 107 { |
| 108 ASSERT(m_isolate); |
| 109 return m_isolate; |
| 110 } |
| 111 |
| 106 void rethrowV8Exception(v8::Handle<v8::Value> value) | 112 void rethrowV8Exception(v8::Handle<v8::Value> value) |
| 107 { | 113 { |
| 108 setException(value); | 114 setException(value); |
| 109 } | 115 } |
| 110 | 116 |
| 111 #if ENABLE(ASSERT) | 117 #if ENABLE(ASSERT) |
| 112 OnStackObjectChecker& onStackObjectChecker() { return m_onStackObjectChecker
; } | 118 OnStackObjectChecker& onStackObjectChecker() { return m_onStackObjectChecker
; } |
| 113 #endif | 119 #endif |
| 114 | 120 |
| 115 protected: | 121 protected: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 TrackExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0,
v8::Handle<v8::Object>(), v8::Isolate::GetCurrent()) { } | 155 TrackExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0,
v8::Handle<v8::Object>(), v8::Isolate::GetCurrent()) { } |
| 150 virtual void throwDOMException(const ExceptionCode&, const String& message)
override; | 156 virtual void throwDOMException(const ExceptionCode&, const String& message)
override; |
| 151 virtual void throwTypeError(const String& message = String()) override; | 157 virtual void throwTypeError(const String& message = String()) override; |
| 152 virtual void throwSecurityError(const String& sanitizedMessage, const String
& unsanitizedMessage = String()) override; | 158 virtual void throwSecurityError(const String& sanitizedMessage, const String
& unsanitizedMessage = String()) override; |
| 153 virtual void throwRangeError(const String& message) override; | 159 virtual void throwRangeError(const String& message) override; |
| 154 }; | 160 }; |
| 155 | 161 |
| 156 } // namespace blink | 162 } // namespace blink |
| 157 | 163 |
| 158 #endif // ExceptionState_h | 164 #endif // ExceptionState_h |
| OLD | NEW |