Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index dbd8f1110108fdb17edd89958105f848e040e167..808159c762e57020cbab93773d5465860813cc90 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -121,6 +121,10 @@ class ParseInfo { |
uint32_t hash_seed() { return hash_seed_; } |
void set_hash_seed(uint32_t hash_seed) { hash_seed_ = hash_seed; } |
+ bool ignore_html_comments() const { |
+ return !script_.is_null() && script_->origin_options().SkipHtmlComments(); |
+ } |
+ |
//-------------------------------------------------------------------------- |
// TODO(titzer): these should not be part of ParseInfo. |
//-------------------------------------------------------------------------- |