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

Unified Diff: src/parsing/scanner.h

Issue 2009963002: [modules] Disable HTML-like comments Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update attribute/method name Created 4 years, 7 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
Index: src/parsing/scanner.h
diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h
index 0acc7ab019a1c7e033ec9160d905990b4419b1bf..bb734494f9ee5234e7177e95d6a49a4e4a0e3b3c 100644
--- a/src/parsing/scanner.h
+++ b/src/parsing/scanner.h
@@ -474,6 +474,8 @@ class Scanner {
bool FoundHtmlComment() const { return found_html_comment_; }
+ void set_allow_html_comments(bool allow) { allow_html_comments_ = allow; }
+
#define DECLARE_ACCESSORS(name) \
inline bool allow_##name() const { return allow_##name##_; } \
inline void set_allow_##name(bool allow) { allow_##name##_ = allow; }
@@ -804,6 +806,9 @@ class Scanner {
// Whether this scanner encountered an HTML comment.
bool found_html_comment_;
+ // Whether this scanner should recognize HTML-like comment tokens.
vogelheim 2016/05/27 08:08:49 Please be clear on what this does. As I read the
mike3 2016/05/27 15:53:22 Yes, you are right. I'm afraid I applied Adam's fe
+ bool allow_html_comments_;
+
bool allow_harmony_exponentiation_operator_;
MessageTemplate::Template scanner_error_;

Powered by Google App Engine
This is Rietveld 408576698