Its a big no no to slam on your brakes, you wheels might lock up specially in non ABS equipted cars.

To answer the question, same as Yebo I would swerve out to the next lane.