Index: src/parsing/scanner.h |
diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h |
index 3c397b3cb700abd05a412ff913b0ae49f9e9c3b7..329ca7d0de64263dad5e683bd05aeaf045600b37 100644 |
--- a/src/parsing/scanner.h |
+++ b/src/parsing/scanner.h |
@@ -274,7 +274,10 @@ class Scanner { |
// Returns the location of the last seen octal literal. |
Location octal_position() const { return octal_pos_; } |
- void clear_octal_position() { octal_pos_ = Location::invalid(); } |
+ void clear_octal_position() { |
+ octal_pos_ = Location::invalid(); |
+ octal_message_ = MessageTemplate::kNone; |
+ } |
// Returns the location of the last seen decimal literal with a leading zero. |
Location decimal_with_leading_zero_position() const { |
return decimal_with_leading_zero_pos_; |
@@ -282,6 +285,7 @@ class Scanner { |
void clear_decimal_with_leading_zero_position() { |
decimal_with_leading_zero_pos_ = Location::invalid(); |
} |
+ MessageTemplate::Template octal_message() const { return octal_message_; } |
// Returns the value of the last smi that was scanned. |
uint32_t smi_value() const { return current_.smi_value_; } |
@@ -786,6 +790,7 @@ class Scanner { |
// Last-seen positions of potentially problematic tokens. |
Location octal_pos_; |
Location decimal_with_leading_zero_pos_; |
+ MessageTemplate::Template octal_message_; |
// One Unicode character look-ahead; c0_ < 0 at the end of the input. |
uc32 c0_; |