Commit Graph

1 Commits

Author SHA1 Message Date
Bob Nystrom
7e3b9a6bcb fix: validate number comparison operand types in num_lt, num_gt, num_lte, num_gte
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.
2014-01-21 15:44:11 +00:00