I've seen lesser plastics get completely melted by such cleaners.
I accidently grabbed and briefly sprayed the Frame of my 4th Gen Glock with CRC Brakleen (with tetrachloroethylene) Chlorinated brake cleaner. This was the first and only time, and appears to be no damage. Glock Polymer is designed to chemical resistant, tough stuff.
My question is? How much damage could have been done?
That is not comforting. Well No Discoloration...so hopefully it was very minimal effects.
Try carb cleaner on it to see if it will survive. I accidentally ruined a motorcycle windshield when it got hit by carb cleaner.
To the gun? None. To your lungs, skin, and internal organs? I don't know.
I've seen a few 10/22 mags severely discolored, and one destroyed by that stuff. Nasty.
"Placement is power" -- seen in an article by Stephen A. Camp
(RIP, Mr. Camp; you will be remembered, and missed)