Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 9a5f24ec8227701a0af962da4a907ee3477f1eb4..f75dc30881b38fb316f5c23d80add9b406fb67c5 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1702,8 +1702,7 @@ TEST(OptimizedAllocationAlwaysInNewSpace) { |
"f(1); f(2); f(3);" |
"%OptimizeFunctionOnNextCall(f);" |
"f(4);"); |
- CHECK(res->IsObject()); |
- CHECK(res->ToObject()->GetRealNamedProperty(v8_str("x"))->Int32Value() == 4); |
+ CHECK_EQ(4, res->ToObject()->GetRealNamedProperty(v8_str("x"))->Int32Value()); |
Handle<JSObject> o = |
v8::Utils::OpenHandle(*v8::Handle<v8::Object>::Cast(res)); |