Index: test/cctest/test-mark-compact.cc |
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc |
index 64d995d95ad9c9668f54185d7ad7bb283cde80f5..0a257ed87d0d984fc3d46f16d60383fa188a6ea1 100644 |
--- a/test/cctest/test-mark-compact.cc |
+++ b/test/cctest/test-mark-compact.cc |
@@ -45,6 +45,7 @@ |
#include "test/cctest/cctest.h" |
using namespace v8::internal; |
+using v8::Just; |
TEST(MarkingDeque) { |
@@ -167,9 +168,7 @@ TEST(MarkCompactCollector) { |
{ HandleScope scope(isolate); |
Handle<String> func_name = factory->InternalizeUtf8String("theFunction"); |
- v8::Maybe<bool> maybe = JSReceiver::HasOwnProperty(global, func_name); |
- CHECK(maybe.has_value); |
- CHECK(maybe.value); |
+ CHECK(Just(true) == JSReceiver::HasOwnProperty(global, func_name)); |
Handle<Object> func_value = |
Object::GetProperty(global, func_name).ToHandleChecked(); |
CHECK(func_value->IsJSFunction()); |
@@ -187,9 +186,7 @@ TEST(MarkCompactCollector) { |
{ HandleScope scope(isolate); |
Handle<String> obj_name = factory->InternalizeUtf8String("theObject"); |
- v8::Maybe<bool> maybe = JSReceiver::HasOwnProperty(global, obj_name); |
- CHECK(maybe.has_value); |
- CHECK(maybe.value); |
+ CHECK(Just(true) == JSReceiver::HasOwnProperty(global, obj_name)); |
Handle<Object> object = |
Object::GetProperty(global, obj_name).ToHandleChecked(); |
CHECK(object->IsJSObject()); |