Index: src/preparser.cc |
diff --git a/src/preparser.cc b/src/preparser.cc |
index c61a08db9a9985a7165c9bde0fc4b92d89192457..6e8800e019aeafca8434af95a0c47e52e56202f2 100644 |
--- a/src/preparser.cc |
+++ b/src/preparser.cc |
@@ -179,7 +179,7 @@ PreParser::SourceElements PreParser::ParseSourceElements(int end_token, |
Statement statement = ParseSourceElement(CHECK_OK); |
if (allow_directive_prologue) { |
if (statement.IsUseStrictLiteral()) { |
- set_language_mode(harmony_scoping_ ? |
+ set_language_mode(allow_harmony_scoping() ? |
i::EXTENDED_MODE : i::STRICT_MODE); |
} else if (!statement.IsStringLiteral()) { |
allow_directive_prologue = false; |