In Avengers: Infinity War, Ebony Maw trapped Doctor Strange and took him to space along with the unexpected guests Tony Stark and Peter Parker in a 'donut' like spaceship.
To save Doctor Strange from Maw, Iron Man blasted a hole in the spaceship which is travelling at light speed. By doing this Stark eventually saved Doctor Strange by pulling Ebony Maw out of the ship who died instantly in space. But, why didn't Doctor Strange die while he was exposed to space (he doesn't have any pressure suite like Iron Man or Spider-Man) before Iron Man closed the hole using blasters?