Index: test/unittests/compiler/js-builtin-reducer-unittest.cc |
diff --git a/test/unittests/compiler/js-builtin-reducer-unittest.cc b/test/unittests/compiler/js-builtin-reducer-unittest.cc |
index 0747f0c876abacbef9285946971d63bfa312e148..8c6a4d9a3851e3f40e0048e837c713342a4ae503 100644 |
--- a/test/unittests/compiler/js-builtin-reducer-unittest.cc |
+++ b/test/unittests/compiler/js-builtin-reducer-unittest.cc |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <limits> |
+ |
#include "src/compiler/js-builtin-reducer.h" |
#include "src/compiler/js-graph.h" |
#include "src/compiler/node-properties-inl.h" |
@@ -132,7 +134,8 @@ TEST_F(JSBuiltinReducerTest, MathMax0) { |
Reduction r = Reduce(call); |
ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), IsNumberConstant(-V8_INFINITY)); |
+ EXPECT_THAT(r.replacement(), |
+ IsNumberConstant(-std::numeric_limits<double>::infinity())); |
} |