以下の関数で、不正な入力値に対してエラーを発生させる適切な場所はどこですか? ```javascript function divide(a, b) { // A: ここ? const result = a / b; // B: ここ? return result; // C: ここ? } ```