Index: src/ast/ast-value-factory.cc |
diff --git a/src/ast/ast-value-factory.cc b/src/ast/ast-value-factory.cc |
index a18f6141cf78079595527d1dfd9c402612571acb..a2717518395623b08591b835d798d7238556dea7 100644 |
--- a/src/ast/ast-value-factory.cc |
+++ b/src/ast/ast-value-factory.cc |
@@ -156,6 +156,7 @@ bool AstValue::BooleanValue() const { |
case NUMBER_WITH_DOT: |
case NUMBER: |
return DoubleToBoolean(number_); |
+ case SMI_WITH_DOT: |
case SMI: |
return smi_ != 0; |
case BOOLEAN: |
@@ -195,6 +196,7 @@ void AstValue::Internalize(Isolate* isolate) { |
case NUMBER: |
value_ = isolate->factory()->NewNumber(number_, TENURED); |
break; |
+ case SMI_WITH_DOT: |
case SMI: |
value_ = handle(Smi::FromInt(smi_), isolate); |
break; |