Chromium Code Reviews| Index: Source/bindings/v8/V8Binding.h |
| diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h |
| index 4e093882fb9e78b7b13b8db4ca8340eb4a9426c6..151aad98eee65241cb93ca94dbd59639b279256b 100644 |
| --- a/Source/bindings/v8/V8Binding.h |
| +++ b/Source/bindings/v8/V8Binding.h |
| @@ -940,6 +940,30 @@ private: |
| void GetDevToolsFunctionInfo(v8::Handle<v8::Function>, v8::Isolate*, int& scriptId, String& resourceName, int& lineNumber); |
| PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(ExecutionContext*, v8::Handle<v8::Function>, v8::Isolate*); |
| +class V8RethrowTryCatchScope FINAL { |
| +public: |
| + V8RethrowTryCatchScope(v8::TryCatch& block) : m_block(block) { } |
|
haraken
2014/05/30 11:58:25
Add explicit.
Jens Widell
2014/05/30 12:20:15
Done.
|
| + ~V8RethrowTryCatchScope() |
| + { |
| + // ReThrow() is a no-op if no exception has been caught, so always call. |
| + m_block.ReThrow(); |
| + } |
| + |
| +private: |
| + v8::TryCatch& m_block; |
| +}; |
| + |
| +class V8ResetTryCatchScope FINAL { |
|
haraken
2014/05/30 11:58:25
Where is this used?
|
| +public: |
| + V8ResetTryCatchScope(v8::TryCatch& block) : m_block(block) { } |
|
haraken
2014/05/30 11:58:25
Add explicit.
Jens Widell
2014/05/30 12:20:15
Done.
|
| + ~V8ResetTryCatchScope() |
| + { |
| + m_block.Reset(); |
| + } |
| + |
| +private: |
| + v8::TryCatch& m_block; |
| +}; |
| } // namespace WebCore |