Cal. Penal Code § 1124
The Court must decide all questions of law which arise in the course of a trial.