fix #20233 Float ranges in case statement in JS crash compiler (#20349)

This commit is contained in:
Bung 2022-09-14 23:16:34 +08:00 • committed by GitHub
commit 08faa04d78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 18 deletions

7
tests/js/t20233.nim Normal file
View file

@ -0,0 +1,7 @@
discard """
output: "yes"
"""
case 1.0
of 1.0..2.0, 4.0: echo "yes"
of 3.0: discard
else: echo "no"