Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index b50019c0e406c7822ec1fcfb6abcbafb623d655d..cef5b9473485d715439db147c147dc89531b8eac 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -107,6 +107,7 @@ class ParserBase : public Traits { |
} |
bool allow_harmony_templates() const { return scanner()->HarmonyTemplates(); } |
bool allow_harmony_sloppy() const { return allow_harmony_sloppy_; } |
+ 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. |
@@ -136,6 +137,9 @@ class ParserBase : public Traits { |
void set_allow_harmony_sloppy(bool allow) { |
allow_harmony_sloppy_ = allow; |
} |
+ void set_allow_harmony_unicode(bool allow) { |
+ scanner()->SetHarmonyUnicode(allow); |
+ } |
protected: |
enum AllowEvalOrArgumentsAsIdentifier { |