| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index 8b78d46a3a0eda84af92d6ce51d2d05131dec774..c41ee1a41b0d9e0500d4611f05dfb6ad27870daa 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -102,6 +102,7 @@ class ParserBase : public Traits {
|
| bool allow_harmony_object_literals() const {
|
| return allow_harmony_object_literals_;
|
| }
|
| + bool allow_harmony_unicode() const { return scanner()->HarmonyUnicode(); }
|
|
|
| // Setters that determine whether certain syntactical constructs are
|
| // allowed to be parsed by this instance of the parser.
|
| @@ -119,6 +120,9 @@ class ParserBase : public Traits {
|
| void set_allow_harmony_object_literals(bool allow) {
|
| allow_harmony_object_literals_ = allow;
|
| }
|
| + void set_allow_harmony_unicode(bool allow) {
|
| + scanner()->SetHarmonyUnicode(allow);
|
| + }
|
|
|
| protected:
|
| enum AllowEvalOrArgumentsAsIdentifier {
|
|
|