Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index faf36c4c7455d541f2bf38f6761f52fe1b359bd1..b9dcbfd84d11baf66e5b9f51e3f822510e0ed1d1 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -815,8 +815,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); |