what causes truck to idle different when breaks are pressed on 1994 Toyota Pickup

when I apply the breaks the rpms go up and down and it starts to idle funny like it wants to kill

Asked by for the 1994 Toyota Pickup
Replace the brake booster.