Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: include/v8.h

Issue 443853002: v8::TryCatch should cancel the scheduled exception on Reset. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index f702166cd4d281965f2caba33a616888eb7cb0fb..5514b67374220ae140f5c70fc202203a4bfa943c 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5114,7 +5114,8 @@ class V8_EXPORT TryCatch {
/**
* Clears any exceptions that may have been caught by this try/catch block.
- * After this method has been called, HasCaught() will return false.
+ * After this method has been called, HasCaught() will return false. Cancels
+ * the scheduled exception if it is caught and ReThrow() is not called before.
*
* It is not necessary to clear a try/catch block before using it again; if
* another exception is thrown the previously caught exception will just be
@@ -5163,6 +5164,8 @@ class V8_EXPORT TryCatch {
void* operator new(size_t size);
void operator delete(void*, size_t);
+ void ResetInternal();
Michael Starzinger 2014/08/07 08:40:36 nit: Can we move this up a few lines to before con
yhirano 2014/08/07 08:50:54 For readability? Then it is OK to do so.
Michael Starzinger 2014/08/07 08:53:53 Yes, for readability and consistency with the rest
+
v8::internal::Isolate* isolate_;
v8::TryCatch* next_;
void* exception_;
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698