Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 311d192f8e694777f48b339bd723369516a4b816..64032dbc99fb918266b6d6662426e74bc8df9226 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -910,7 +910,6 @@ Parser::Parser(ParseInfo* info) |
DCHECK(!info->script().is_null() || info->source_stream() != NULL); |
set_allow_lazy(info->allow_lazy_parsing()); |
set_allow_natives(FLAG_allow_natives_syntax || info->is_native()); |
- set_allow_harmony_modules(!info->is_native() && FLAG_harmony_modules); |
set_allow_harmony_arrow_functions(FLAG_harmony_arrow_functions); |
set_allow_harmony_sloppy(FLAG_harmony_sloppy); |
set_allow_harmony_sloppy_let(FLAG_harmony_sloppy_let); |
@@ -1054,7 +1053,6 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info) { |
bool ok = true; |
int beg_pos = scanner()->location().beg_pos; |
if (info->is_module()) { |
- DCHECK(allow_harmony_modules()); |
ParseModuleItemList(body, &ok); |
} else { |
ParseStatementList(body, Token::EOS, &ok); |
@@ -4475,7 +4473,6 @@ PreParser::PreParseResult Parser::ParseLazyFunctionBodyWithPreParser( |
reusable_preparser_->set_allow_lazy(true); |
#define SET_ALLOW(name) reusable_preparser_->set_allow_##name(allow_##name()); |
SET_ALLOW(natives); |
- SET_ALLOW(harmony_modules); |
SET_ALLOW(harmony_arrow_functions); |
SET_ALLOW(harmony_sloppy); |
SET_ALLOW(harmony_sloppy_let); |