diff src/jscomp.sml @ 2110:9e9c915f554c

A new MonoReduce optimization for lifting 'let' out of field projection; JavaScript compilation for exponentiation
author Adam Chlipala <adam@chlipala.net>
date Sun, 01 Feb 2015 12:29:14 -0500
parents 4d64af730e35
children 6eae499c56cb e10881cd92da
line wrap: on
line diff
--- a/src/jscomp.sml	Wed Jan 28 08:47:04 2015 -0500
+++ b/src/jscomp.sml	Sun Feb 01 12:29:14 2015 -0500
@@ -724,6 +724,8 @@
                                              | "<" => "lt"
                                              | "<=" => "le"
                                              | "strcmp" => "strcmp"
+                                             | "powl" => "pow"
+                                             | "powf" => "pow"
                                              | _ => raise Fail ("Jscomp: Unknown binary operator " ^ s)
 
                                 val (e1, st) = jsE inner (e1, st)