| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 83e5a440d6591feebe0b4c47392598895c7e8409..a61d6549d40e6ac6fe62020fe048a7298e641a12 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -1035,7 +1035,7 @@ Handle<Object> Factory::NewNumber(double value,
|
| // patterns is faster than using fpclassify() et al.
|
| if (IsMinusZero(value)) return NewHeapNumber(-0.0, IMMUTABLE, pretenure);
|
|
|
| - int int_value = FastD2I(value);
|
| + int int_value = FastD2IChecked(value);
|
| if (value == int_value && Smi::IsValid(int_value)) {
|
| return handle(Smi::FromInt(int_value), isolate());
|
| }
|
|
|