If a big majority of democratically elected representatives voted for this, there is, however, nothing 'undemocratic' about it. The will of the people is sometimes horrible. The law is definitely not in line with liberal democracy as we know it in the West, and it undoubtedly infringes on people's fundamental rights, but let's be precise with our language here.
I don’t agree with this. Democracy is more than just representing the will of the majority. Equality is a necessary component of democracy. If 51% of the public supports killing the other 49%, it’s not “democratic” to enforce their will.