Index: gin/try_catch.h |
diff --git a/gin/try_catch.h b/gin/try_catch.h |
index 633b909234139c3040333732b9166b70f4e21b97..84b2ae1646560eb41bf221f78b34e7d3ae64d68f 100644 |
--- a/gin/try_catch.h |
+++ b/gin/try_catch.h |
@@ -16,13 +16,14 @@ namespace gin { |
// TryCatch is a convenient wrapper around v8::TryCatch. |
class GIN_EXPORT TryCatch { |
public: |
- TryCatch(); |
+ explicit TryCatch(v8::Isolate* isolate); |
~TryCatch(); |
bool HasCaught(); |
std::string GetStackTrace(); |
private: |
+ v8::Isolate* isolate_; |
v8::TryCatch try_catch_; |
DISALLOW_COPY_AND_ASSIGN(TryCatch); |