| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index 8a932582586ed15b6b5b886ccecbe6933ee6d7e1..b00cbbbd477cf2ea175fc4e62f3f180e23de5122 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -81,6 +81,7 @@ class ParserBase : public Traits {
|
| allow_lazy_(false),
|
| allow_natives_syntax_(false),
|
| allow_generators_(false),
|
| + allow_for_of_(false),
|
| allow_arrow_functions_(false),
|
| zone_(zone) {}
|
|
|
| @@ -89,6 +90,7 @@ class ParserBase : public Traits {
|
| bool allow_lazy() const { return allow_lazy_; }
|
| bool allow_natives_syntax() const { return allow_natives_syntax_; }
|
| bool allow_generators() const { return allow_generators_; }
|
| + bool allow_for_of() const { return allow_for_of_; }
|
| bool allow_arrow_functions() const { return allow_arrow_functions_; }
|
| bool allow_modules() const { return scanner()->HarmonyModules(); }
|
| bool allow_harmony_scoping() const { return scanner()->HarmonyScoping(); }
|
| @@ -101,6 +103,7 @@ class ParserBase : public Traits {
|
| void set_allow_lazy(bool allow) { allow_lazy_ = allow; }
|
| void set_allow_natives_syntax(bool allow) { allow_natives_syntax_ = allow; }
|
| void set_allow_generators(bool allow) { allow_generators_ = allow; }
|
| + void set_allow_for_of(bool allow) { allow_for_of_ = allow; }
|
| void set_allow_arrow_functions(bool allow) { allow_arrow_functions_ = allow; }
|
| void set_allow_modules(bool allow) { scanner()->SetHarmonyModules(allow); }
|
| void set_allow_harmony_scoping(bool allow) {
|
| @@ -567,6 +570,7 @@ class ParserBase : public Traits {
|
| bool allow_lazy_;
|
| bool allow_natives_syntax_;
|
| bool allow_generators_;
|
| + bool allow_for_of_;
|
| bool allow_arrow_functions_;
|
|
|
| typename Traits::Type::Zone* zone_; // Only used by Parser.
|
|
|