diff src/jscomp.sml @ 1619:15e0c935c91b

Catching integer divisions by zero
author Adam Chlipala <adam@chlipala.net>
date Sat, 03 Dec 2011 09:44:07 -0500
parents 94ef0b07066a
children 43f22a8f76cc
line wrap: on
line diff
--- a/src/jscomp.sml	Wed Nov 30 15:28:56 2011 -0500
+++ b/src/jscomp.sml	Sat Dec 03 09:44:07 2011 -0500
@@ -706,6 +706,8 @@
                                              | "*" => "times"
                                              | "/" => (case bi of Int => "divInt" | NotInt => "div")
                                              | "%" => (case bi of Int => "modInt" | NotInt => "mod")
+                                             | "fdiv" => "div"
+                                             | "fmod" => "mod"
                                              | "<" => "lt"
                                              | "<=" => "le"
                                              | "strcmp" => "strcmp"