Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index aa6ee8ccb6c67a3d210a39b18e97a31f9808ea32..b82b652ce140b0439bc8471e333106360c3db4e0 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -694,6 +694,10 @@ Literal* ParserTraits::ExpressionFromLiteral(Token::Value token, int pos, |
return factory->NewBooleanLiteral(true, pos); |
case Token::FALSE_LITERAL: |
return factory->NewBooleanLiteral(false, pos); |
+ case Token::SMI: { |
+ int value = scanner->smi_value(); |
+ return factory->NewSmiLiteral(value, pos); |
+ } |
case Token::NUMBER: { |
double value = scanner->DoubleValue(); |
return factory->NewNumberLiteral(value, pos); |