diff --git a/test/cctest/test_environment.cc b/test/cctest/test_environment.cc index e2931337bf6a40..cdd4d470fd67d5 100644 --- a/test/cctest/test_environment.cc +++ b/test/cctest/test_environment.cc @@ -331,8 +331,8 @@ static void at_exit_js(void* arg) { v8::Isolate* isolate = static_cast(arg); v8::HandleScope handle_scope(isolate); v8::Local obj = v8::Object::New(isolate); - assert(!obj.IsEmpty()); // Assert VM is still alive. - assert(obj->IsObject()); + EXPECT_FALSE(obj.IsEmpty()); // Assert VM is still alive. + EXPECT_TRUE(obj->IsObject()); called_at_exit_js = true; }