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

Unified Diff: src/parser.cc

Issue 7464030: Fix calculation of 'scope_calls_eval' when 'eval' is within a nested catch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 5704cb805d84799981b6ebbee95bd460173bc29a..bb166bd5a77a450bc4f8a512ba57aac50a3b9f59 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -2156,6 +2156,7 @@ TryStatement* Parser::ParseTryStatement(bool* ok) {
top_scope_ = catch_scope;
inner_body = ParseBlock(NULL, CHECK_OK);
top_scope_ = saved_scope;
+ if(catch_scope->calls_eval()) top_scope_->RecordEvalCall();
Kevin Millikin (Chromium) 2011/07/28 08:53:40 Style nit: there should be a space after the keywo
Steven 2011/07/28 11:12:12 Removed. On 2011/07/28 08:53:40, Kevin Millikin wr
}
}
« no previous file with comments | « no previous file | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698