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

Unified Diff: src/top.h

Issue 43070: Fix exception propagation problem where undefined was returned instead... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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/top.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/top.h
===================================================================
--- src/top.h (revision 1483)
+++ src/top.h (working copy)
@@ -158,10 +158,12 @@
}
static void setup_external_caught() {
- thread_local_.external_caught_exception_ =
- (!thread_local_.pending_exception_->IsTheHole()) &&
- (thread_local_.catcher_ != NULL) &&
- (Top::thread_local_.try_catch_handler_ == Top::thread_local_.catcher_);
+ if (!thread_local_.external_caught_exception_) {
Søren Thygesen Gjesse 2009/03/11 10:44:18 Is this if just to avoid recalculation, or is ther
Mads Ager (chromium) 2009/03/11 11:09:52 The external_caught_exception flag has to be stick
+ thread_local_.external_caught_exception_ =
+ has_pending_exception() &&
+ (thread_local_.catcher_ != NULL) &&
+ (thread_local_.try_catch_handler_ == thread_local_.catcher_);
+ }
}
// Tells whether the current context has experienced an out of memory
« no previous file with comments | « no previous file | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698