Fix features.

This commit is contained in:
Stephen Chung
2020-07-01 22:21:43 +08:00
parent 7957c58def
commit 760c13d36e
9 changed files with 36 additions and 6 deletions

View File

@@ -2194,6 +2194,7 @@ fn parse_let(
}
/// Parse an import statement.
#[cfg(not(feature = "no_module"))]
fn parse_import(
input: &mut TokenStream,
state: &mut ParseState,
@@ -2444,6 +2445,8 @@ fn parse_stmt(
Token::Let => parse_let(input, state, Normal, settings.level_up()),
Token::Const => parse_let(input, state, Constant, settings.level_up()),
#[cfg(not(feature = "no_module"))]
Token::Import => parse_import(input, state, settings.level_up()),
#[cfg(not(feature = "no_module"))]