Index: test/cctest/test-types.cc |
diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc |
index ebef527dd0b3a64b019bdcf739e59f9ceef6f73d..4fc32e9219975458dc0f7c66c39bd4ef65538f99 100644 |
--- a/test/cctest/test-types.cc |
+++ b/test/cctest/test-types.cc |
@@ -339,10 +339,14 @@ struct Tests : Rep { |
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(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)); |
+ 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)); |
} |
void Range() { |