Jennifer Garner Makes a Stinging Ben Affleck Joke in “Deadpool & Wolverine”

Jennifer Garner and ex-husband Ben Affleck previously played Marvel heroes Elektra and Daredevil together on the big screen

<p>Frazer Harrison/Getty; Gary Miller/WireImage</p> Jennifer Garner and Ben Affleck

Frazer Harrison/Getty; Gary Miller/WireImage

Jennifer Garner and Ben Affleck

Note: This article contains spoilers for Deadpool & Wolverine, in theaters now.

Jennifer Garner delivers a playful joke about ex-husband Ben Affleck in Deadpool & Wolverine.

The actress reprises her role of Elektra in the new sequel that stars Ryan Reynolds and Hugh Jackman. The film — which is full of jaw-dropping cameos and past Marvel actors — is directed by Shawn Levy, with whom Garner made the 2022 movie The Adam Project.

In one scene, Reynolds' Deadpool is expressing condolences to former Marvel movie characters who hadn't survived the wasteland world where variants from different timelines go to be erased.

When he mentions Daredevil, a character Affleck previously played, Garner's Elektra quickly says, "Oh, it's fine," in regards to him being gone.

Related: All the Biggest Deadpool & Wolverine Cameos Revealed: Who Has Fans Buzzing?

Zade Rosenthal/20th Century Fox/Marvel/Kobal/Shutterstock Jennifer Garner and Ben Affleck in "Daredevil" (2003)
Zade Rosenthal/20th Century Fox/Marvel/Kobal/Shutterstock Jennifer Garner and Ben Affleck in "Daredevil" (2003)

Never miss a story — sign up for PEOPLE's free daily newsletter to stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories. 

Last summer, reports broke that Garner would reprise the role almost 20 years later in Deadpool & Wolverine.

Garner first played the role of the Marvel comic book character back in 2003's Daredevil opposite Affleck. She later got her own standalone Elektra movie in 2005.

She and Affleck, 51, married in 2009, and they share three kids. They announced they were divorcing in 2015 and officially filed for divorce in April 2017; their divorce was finalized the following year.

<p>Mary Evans/Ronald Grant/ Everett</p> Jennifer Garner and Ben Affleck in "Daredevil" (2003)

Mary Evans/Ronald Grant/ Everett

Jennifer Garner and Ben Affleck in "Daredevil" (2003)

In a recent Glamour interview, Garner recalled her struggles working in Elektra's tight-fitting costume at the time. She said she also underwent extensive martial arts training to use the sai weapons.

"I had to be cut out of and sewn into the pleather pants every time I had to pee, and that was like a 45-minute undertaking. So I definitely held it in. And I had so many chicken-cutlet fake boobs in to make Elektra's boobs; I think there were three on each side of different sizes. And everything was pushed up and out."

<p>Emma McIntyre/WireImage</p>

Emma McIntyre/WireImage

"I was just this close to a wardrobe malfunction at all times," she added. "There's not enough tape in the world to make this stuff safe."

Garner is also known for such action movies as 2007's The Kingdom and 2018's Peppermint. While promoting the latter film, she told Entertainment Weekly she wanted to do more action roles but couldn't find appealing projects.

"I’d wanted to do something physical, but the roles that came my way didn’t have high enough stakes to make me believe in them. The drama has to be real, and the reason for risk has to be the highest imaginable," she said.

Deadpool & Wolverine is in theaters now.

For more People news, make sure to sign up for our newsletter!

Read the original article on People.