Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 7e0d9366116f3b8bd7619a78ceb39e6a6901cd1e..cbe1da86ec1865fb0be078ffa915e402d3f67fbc 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -816,8 +816,9 @@ Literal* ParserTraits::ExpressionFromLiteral(Token::Value token, int pos, |
return factory->NewSmiLiteral(value, pos); |
} |
case Token::NUMBER: { |
+ bool has_dot = scanner->ContainsDot(); |
double value = scanner->DoubleValue(); |
- return factory->NewNumberLiteral(value, pos); |
+ return factory->NewNumberLiteral(value, pos, has_dot); |
} |
default: |
DCHECK(false); |