A co-host of “The View” had a terrifying health scare while the cameras were rolling last week.

Sunny Hostin recalled on Friday’s episode of the daytime talk show that she “almost died” while shooting last Wednesday’s episode when she accidentally ate walnuts, and it gave her a severe allergic reaction.

Hostin explained that last Wednesday, Debbie Matenopoulos, a former co-host of “The View,” visited the show to promote her new cookbook and brought the panelists a spread of her Greek food, which they were all eating on-air.

Hostin said she felt like everything was fine until her co-host, Alyssa Farah Griffin, asked Matenopoulos if there were walnuts in the dish they were eating. “And [Debbie] says, ‘Yes,’” Hostin said. “So I panic immediately.”

Hostin said she then decided to write a “death note” on the back of a card to inform Griffin, who typically sits next to her, that she was in danger.