(1) In this section, a
reference to the doing of anything includes a reference to an omission to do
anything.
(2) A action in tort
does not lie against a person for anything that the person does while he or
she is a JP in the performance or purported performance of a function of a JP
unless the person acts corruptly or maliciously.
(3) The Crown is also
relieved of any liability that it might otherwise have had for another person
having done anything as described in subsection (2).