Index: test/cctest/test-mark-compact.cc |
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc |
index 0200129b1fcb04b95949e265f2f0739ab281087a..7a986890e6d397d2dfaf00b1de3896c4f480fffa 100644 |
--- a/test/cctest/test-mark-compact.cc |
+++ b/test/cctest/test-mark-compact.cc |
@@ -170,7 +170,7 @@ TEST(MarkCompactCollector) { |
JSObject::kHeaderSize)->ToObjectChecked()); |
function->set_initial_map(initial_map); |
JSReceiver::SetProperty( |
- global, handle(func_name), handle(function), NONE, SLOPPY); |
+ global, handle(func_name), handle(function), NONE, SLOPPY).Assert(); |
JSObject* obj = JSObject::cast( |
heap->AllocateJSObject(function)->ToObjectChecked()); |
@@ -187,12 +187,13 @@ TEST(MarkCompactCollector) { |
obj = JSObject::cast(heap->AllocateJSObject(function)->ToObjectChecked()); |
String* obj_name = |
String::cast(heap->InternalizeUtf8String("theObject")->ToObjectChecked()); |
- JSReceiver::SetProperty(global, handle(obj_name), handle(obj), NONE, SLOPPY); |
+ JSReceiver::SetProperty( |
+ global, handle(obj_name), handle(obj), NONE, SLOPPY).Assert(); |
String* prop_name = |
String::cast(heap->InternalizeUtf8String("theSlot")->ToObjectChecked()); |
Handle<Smi> twenty_three(Smi::FromInt(23), isolate); |
JSReceiver::SetProperty( |
- handle(obj), handle(prop_name), twenty_three, NONE, SLOPPY); |
+ handle(obj), handle(prop_name), twenty_three, NONE, SLOPPY).Assert(); |
heap->CollectGarbage(OLD_POINTER_SPACE, "trigger 5"); |