From: mstarzinger@chromium.org Date: Wed, 3 Apr 2013 16:14:56 +0000 (+0000) Subject: Fix error message when reporting unexpected yield. X-Git-Tag: upstream/4.7.83~14711 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e559b72e402e0a4225be6491c08bc067c67bc221;p=platform%2Fupstream%2Fv8.git Fix error message when reporting unexpected yield. R=rossberg@chromium.org BUG=v8:2355 TEST=webkit:fast/js/reserved-words-as-property.html Review URL: https://codereview.chromium.org/13546004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14126 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/parser.cc b/src/parser.cc index e468cb9..d1228d2 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::empty()); + case Token::YIELD: case Token::FUTURE_STRICT_RESERVED_WORD: return ReportMessage(top_scope_->is_classic_mode() ? "unexpected_token_identifier" :