This is a common method for low-cost switching power supplies (consumer products, often single-sided boards).
It does not always spark, but rather serves to release surges when they occur due to lightning, etc., so i have not seen many blackened ones.