Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 7e16eead38629e15612d37e5be1ba8cef649c959..a93dfc6e9869c45ebda5546fbc0e6162b978b71c 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -137,7 +137,9 @@ class FunctionTester : public InitializedHandleScope { |
Handle<Object> infinity() { return isolate->factory()->infinity_value(); } |
- Handle<Object> minus_infinity() { return Val(-V8_INFINITY); } |
+ Handle<Object> minus_infinity() { |
+ return Val(-std::numeric_limits<double>::infinity()); |
+ } |
Handle<Object> nan() { return isolate->factory()->nan_value(); } |