| Index: src/parsing/scanner.h
|
| diff --git a/src/parsing/scanner.h b/src/parsing/scanner.h
|
| index 0acc7ab019a1c7e033ec9160d905990b4419b1bf..a63d72f6ba378200e882ff30457fa5abc9bef67a 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_module(bool module) { module_ = module; }
|
| +
|
| #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 is currently scanning ECMAScript module code
|
| + bool module_;
|
| +
|
| bool allow_harmony_exponentiation_operator_;
|
|
|
| MessageTemplate::Template scanner_error_;
|
|
|