A small comet survived what astronomers figured would be a sure death when it danced uncomfortably close to the broiling sun.