Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index e468cb970c09bc75a32f21938c9a7cb839124b4c..d1228d2f7f2fb05200d057507c3e5bb8e9357c9e 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -3582,6 +3582,7 @@ void Parser::ReportUnexpectedToken(Token::Value token) { |
case Token::FUTURE_RESERVED_WORD: |
return ReportMessage("unexpected_reserved", |
Vector<const char*>::empty()); |
+ case Token::YIELD: |
case Token::FUTURE_STRICT_RESERVED_WORD: |
return ReportMessage(top_scope_->is_classic_mode() ? |
"unexpected_token_identifier" : |