Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index fd125e8919a04642a21b5a128cb956bc75a77c1e..2be6301db258e2bcd8c84316c09ed4187a09dd25 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -193,15 +193,17 @@ PreParser::Statement PreParser::ParseStatementListItem(bool* ok) { |
return ParseVariableStatement(kStatementListItem, ok); |
} |
break; |
- case Token::IDENTIFIER: { |
+ case Token::IDENTIFIER: |
+ case Token::FUTURE_STRICT_RESERVED_WORD: { |
if (!scope_->typed()) break; |
int pos = peek_position(); |
if (CheckContextualKeyword(CStrVector("type"))) { |
return ParseTypeAliasDeclaration(pos, ok); |
+ } else if (CheckContextualKeyword(CStrVector("interface"))) { |
+ return ParseInterfaceDeclaration(pos, ok); |
} |
break; |
} |
- // TODO(nikolaos): interface |
// TODO(nikolaos): ambient |
default: |
break; |