From: marja@chromium.org Date: Thu, 17 Apr 2014 09:23:04 +0000 (+0000) Subject: Tiny Parser fix: init identifiers. X-Git-Tag: upstream/4.7.83~9543 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6db82d81ee212c6e0726197dcd50d24b8f5b59d;p=platform%2Fupstream%2Fv8.git Tiny Parser fix: init identifiers. This bug went unnoticed because PreParserIdentifier and Handle have default ctors which create a null identifier, but this it not true for all possible identifier types (especially pointers). R=ulan@chromium.org BUG= Review URL: https://codereview.chromium.org/238253012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20834 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/preparser.h b/src/preparser.h index de08eb3..ce8df77 100644 --- a/src/preparser.h +++ b/src/preparser.h @@ -2047,7 +2047,7 @@ ParserBase::ParseMemberExpression(bool* ok) { Consume(Token::FUNCTION); int function_token_position = position(); bool is_generator = allow_generators() && Check(Token::MUL); - IdentifierT name; + IdentifierT name = this->EmptyIdentifier(); bool is_strict_reserved_name = false; Scanner::Location function_name_location = Scanner::Location::invalid(); FunctionLiteral::FunctionType function_type =