Whoopi Goldberg, host of ABC's The View, slammed Will & Grace actors Debra Messing and Eric McCormack after they demanded a list of attendees to a Hollywood fundraiser for President Trump be made public.

"Listen, the last time people did this. People ended up killing themselves. This is not a good idea," Goldberg said as she compared the actors' insistence for a public list of Trump donors to McCarthyism. "We had something called a blacklist, and a lot of really good people were accused of stuff. Nobody cared whether it was true or not. They were accused. And they lost their right to work."

"In this country, people can vote for who they want to. That is one of the great rights of this country. You don’t have to like it, but we don’t go after people because we don’t like who they voted for. We don’t go after them that way. We can talk about issues and stuff, but we don’t print out lists. I’m sure you guys misspoke when you said that because it sounded like a good idea. Think about it. Read about it. Remember what the blacklist actually meant to people and don’t encourage anyone, anyone, to do it."

Goldberg's rant against the stars of the sitcom Will & Grace was met with cheers and applause from the audience.

Last week, Messing, 51, demanded on Twitter that the Hollywood Reporter "print a list of all attendees" after the news site announced Trump was holding a fundraiser in Beverly Hills.

Please print a list of all attendees please. The public has a right to know. https://t.co/YV4UoxrPHI — Debra Messing (@DebraMessing) August 31, 2019

Actor Eric McCormack similarly asked the publication to release a list of those attending.

Hey, @THR, kindly report on everyone attending this event, so the rest of us can be clear about who we don’t wanna work with. Thx. https://t.co/7W3xPG3bI2 — Eric McCormack (@EricMcCormack) August 30, 2019

Trump responded Sunday to Messing saying that she used to be nice to him before he was president.

"I have not forgotten that when it was announced that I was going to do The Apprentice, and when it then became a big hit, helping NBC’s failed lineup greatly, @DebraMessing came up to me at an Upfront & profusely thanked me, even calling me “Sir.” How times have changed!"