An arrest warrant will be issued for you if you leave the country while the case is pending. As such, when you re-enter, you will be arrested and potentially placed into removal proceedings for leaving the country without finishing the case.In short, if you do leave, do so after your case has ended. Even then, it will be difficult and you should seek assistance to be able to reenter without losing your nonimmigrant visa.
Dhenu Savla, Esq.
You need to speak to your public defender or criminal attorney about the travel. i agree - you will probably be issued a warrant and that is bad.
A pending charge isn't a conviction (whatever you DO NOT ENTER A DIVERSION PROGRAM). So, that won't be a problem.
But, as the other attorneys stated ... you need permission from the court to exit the US.
Do not rely completely on information you get on any website. It is always wise to consult personally with an immigration attorney before taking action.
Consider contacting one of the attorneys on Avvo, or www.ailalawyer.com
Talk to your criminal defense attorney and have him/her talk to an immigration attorney.
Capriotti International Law
SKYPE 3-WAY VIDEO AVAILABLE
FORMER IMMIGRATION LAW PROFESSOR -- LEGAL DISCLAIMER: This answer is offered for informational purposes only. It does not constitute an attorney-client relationship.