Quote
Same heater had a couple of #12 wires stuck into a male extension cord end

I don't think you will find this one in any code book.