50. All proceedings under this Act shall be deemed to be judicial proceedings within the meaning of section 228 of the 22[Penal Code].