diff --git a/test/cctest/test_environment.cc b/test/cctest/test_environment.cc index fd4adf17c83ac9..13316ceccb4d8a 100644 --- a/test/cctest/test_environment.cc +++ b/test/cctest/test_environment.cc @@ -341,8 +341,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; }