Index: test/cctest/test-ordered-hash-table.cc |
diff --git a/test/cctest/test-ordered-hash-table.cc b/test/cctest/test-ordered-hash-table.cc |
index fc3515fc4aeb187840ac4ab5c0a6e588ffbf9319..b7c043d5e3fc0732f98ca5353c15ba89d73de83e 100644 |
--- a/test/cctest/test-ordered-hash-table.cc |
+++ b/test/cctest/test-ordered-hash-table.cc |
@@ -41,12 +41,14 @@ void CheckIterResultObject(Isolate* isolate, |
Handle<JSObject> result, |
Handle<Object> value, |
bool done) { |
- CHECK(Object::GetProperty(isolate, result, "value").ToHandleChecked() |
- ->SameValue(*value)); |
- CHECK(Object::GetProperty(isolate, result, "done").ToHandleChecked() |
- ->IsBoolean()); |
- CHECK_EQ(Object::GetProperty(isolate, result, "done").ToHandleChecked() |
- ->BooleanValue(), done); |
+ Handle<Object> value_object = |
+ Object::GetProperty(isolate, result, "value").ToHandleChecked(); |
+ Handle<Object> done_object = |
+ Object::GetProperty(isolate, result, "done").ToHandleChecked(); |
+ |
+ CHECK_EQ(*value_object, *value); |
+ CHECK(done_object->IsBoolean()); |
+ CHECK_EQ(done_object->BooleanValue(), done); |
} |