Revision: 20834
Author: [email protected]
Date: Thu Apr 17 09:23:04 2014 UTC
Log: Tiny Parser fix: init identifiers.
This bug went unnoticed because PreParserIdentifier and Handle<String> have
default ctors which create a null identifier, but this it not true for all
possible identifier types (especially pointers).
[email protected]
BUG=
Review URL: https://codereview.chromium.org/238253012
http://code.google.com/p/v8/source/detail?r=20834
Modified:
/branches/bleeding_edge/src/preparser.h
=======================================
--- /branches/bleeding_edge/src/preparser.h Mon Apr 14 08:49:23 2014 UTC
+++ /branches/bleeding_edge/src/preparser.h Thu Apr 17 09:23:04 2014 UTC
@@ -2047,7 +2047,7 @@
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 =
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.