/ˈwɪs(ə)l ən ðə dɑːk/
To act brave in a scary situation.
“He whistled in the dark, trying to stay calm.”