Validate number comparison operand types.

This commit is contained in:
Bob Nystrom
2014-01-21 07:44:11 -08:00
parent 7b1b39bd2c
commit 635d695083
5 changed files with 8 additions and 9 deletions
@@ -0,0 +1 @@
1 >= false // expect runtime error: Right operand must be a number.
@@ -0,0 +1 @@
1 > false // expect runtime error: Right operand must be a number.
@@ -0,0 +1 @@
1 <= false // expect runtime error: Right operand must be a number.
@@ -0,0 +1 @@
1 < false // expect runtime error: Right operand must be a number.