Index: test/cctest/types-fuzz.h |
diff --git a/test/cctest/types-fuzz.h b/test/cctest/types-fuzz.h |
index 3fe4782ff33521d55c84f8190be5b7a76bd0fe11..4eac64c838b409ce0c96b1383d28dc8867c09a33 100644 |
--- a/test/cctest/types-fuzz.h |
+++ b/test/cctest/types-fuzz.h |
@@ -87,10 +87,8 @@ |
types.push_back(Type::Constant(*it, region)); |
} |
- integers.push_back(isolate->factory()->NewNumber( |
- -std::numeric_limits<double>::infinity())); |
- integers.push_back(isolate->factory()->NewNumber( |
- +std::numeric_limits<double>::infinity())); |
+ integers.push_back(isolate->factory()->NewNumber(-V8_INFINITY)); |
+ integers.push_back(isolate->factory()->NewNumber(+V8_INFINITY)); |
integers.push_back(isolate->factory()->NewNumber(-rng_->NextInt(10))); |
integers.push_back(isolate->factory()->NewNumber(+rng_->NextInt(10))); |
for (int i = 0; i < 10; ++i) { |
@@ -100,10 +98,8 @@ |
if (!IsMinusZero(x)) integers.push_back(isolate->factory()->NewNumber(x)); |
} |
- Integer = Type::Range( |
- isolate->factory()->NewNumber(-std::numeric_limits<double>::infinity()), |
- isolate->factory()->NewNumber(+std::numeric_limits<double>::infinity()), |
- region); |
+ Integer = Type::Range(isolate->factory()->NewNumber(-V8_INFINITY), |
+ isolate->factory()->NewNumber(+V8_INFINITY), region); |
NumberArray = Type::Array(Number, region); |
StringArray = Type::Array(String, region); |