Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 2c8e405ceea9242d23417ceb632693e9105611ac..793903bf5b06abd27e7662328abc2b5dd9851026 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -1248,6 +1248,7 @@ class PreParserTraits { |
// Producing data during the recursive descent. |
PreParserIdentifier GetSymbol(Scanner* scanner); |
+ PreParserIdentifier GetNumberAsSymbol(Scanner* scanner); |
static PreParserIdentifier GetNextSymbol(Scanner* scanner) { |
return PreParserIdentifier::Default(); |
@@ -1893,10 +1894,7 @@ typename ParserBase<Traits>::ObjectLiteralPropertyT ParserBase< |
break; |
case Token::NUMBER: |
Consume(Token::NUMBER); |
- // TODO(arv): Fix issue with numeric keys. get 1.0() should be |
- // treated as if the key was '1' |
- // https://code.google.com/p/v8/issues/detail?id=3507 |
- name = this->GetSymbol(scanner_); |
+ name = this->GetNumberAsSymbol(scanner_); |
break; |
default: |
name = ParseIdentifierName( |