Replace silent RETURN_NULL for non-numeric right operands with explicit runtime error via validateNum in four comparison primitives (num_lt, num_gt, num_lte, num_gte). Also remove redundant IS_NUM check in num_mod. Add four new test files verifying runtime error messages for each comparison operator when given a boolean operand.
2 lines
68 B
Plaintext
2 lines
68 B
Plaintext
1 >= false // expect runtime error: Right operand must be a number.
|