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

Unified Diff: src/preparser.h

Issue 98863002: Experimental scanner: fix harmony flag setting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years 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 | « src/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 4dfa19c7d2b2bd061b5fa9eb8a818e2ce367baa2..3cbd0dd9e557d5bb1c670bd0444863abcd1853dd 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -48,7 +48,11 @@ class ParserBase {
allow_generators_(false),
allow_for_of_(false) { }
// TODO(mstarzinger): Only virtual until message reporting has been unified.
- virtual ~ParserBase() { }
+ // FIXME: Might need to continue to be virtual for the experimental branch.
+ virtual ~ParserBase() {
+ delete scanner_;
+ scanner_ = NULL;
+ }
// Getters that indicate whether certain syntactical constructs are
// allowed to be parsed by this instance of the parser.
« no previous file with comments | « src/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698