Index: test/cctest/test-types.cc |
diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc |
index 4fc32e9219975458dc0f7c66c39bd4ef65538f99..ebef527dd0b3a64b019bdcf739e59f9ceef6f73d 100644 |
--- a/test/cctest/test-types.cc |
+++ b/test/cctest/test-types.cc |
@@ -339,14 +339,10 @@ |
CHECK(!T.Constant(fac->NewNumber(10e60))->Is(T.Integral32)); |
CHECK(T.Constant(fac->NewNumber(-1.0*0.0))->Is(T.MinusZero)); |
CHECK(T.Constant(fac->NewNumber(v8::base::OS::nan_value()))->Is(T.NaN)); |
- CHECK(T.Constant(fac->NewNumber(std::numeric_limits<double>::infinity())) |
- ->Is(T.PlainNumber)); |
- CHECK(!T.Constant(fac->NewNumber(std::numeric_limits<double>::infinity())) |
- ->Is(T.Integral32)); |
- CHECK(T.Constant(fac->NewNumber(-std::numeric_limits<double>::infinity())) |
- ->Is(T.PlainNumber)); |
- CHECK(!T.Constant(fac->NewNumber(-std::numeric_limits<double>::infinity())) |
- ->Is(T.Integral32)); |
+ CHECK(T.Constant(fac->NewNumber(V8_INFINITY))->Is(T.PlainNumber)); |
+ CHECK(!T.Constant(fac->NewNumber(V8_INFINITY))->Is(T.Integral32)); |
+ CHECK(T.Constant(fac->NewNumber(-V8_INFINITY))->Is(T.PlainNumber)); |
+ CHECK(!T.Constant(fac->NewNumber(-V8_INFINITY))->Is(T.Integral32)); |
} |
void Range() { |