summaryrefslogtreecommitdiff
path: root/src/jscomp.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-09-24 11:15:21 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-09-24 11:15:21 -0400
commit0c069782302f9df12f6370fc9b1805ee2bb9134e (patch)
tree2af6471dc45cf4c01c34a7bd5ee984b6e49a2ffe /src/jscomp.sml
parentb04755514658d23bd89b5453e0cdd544804ee418 (diff)
demo/more compiles; small problem left with foreign keys in Grid1
Diffstat (limited to 'src/jscomp.sml')
-rw-r--r--src/jscomp.sml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jscomp.sml b/src/jscomp.sml
index 1c94cd05..b6e4a3b6 100644
--- a/src/jscomp.sml
+++ b/src/jscomp.sml
@@ -686,7 +686,7 @@ fun process file =
val name = case s of
"!" => "not"
| "-" => "neg"
- | _ => raise Fail "Jscomp: Unknown unary operator"
+ | _ => raise Fail ("Jscomp: Unknown unary operator " ^ s)
val (e, st) = jsE inner (e, st)
in
@@ -707,7 +707,8 @@ fun process file =
| "%" => "mod"
| "<" => "lt"
| "<=" => "le"
- | _ => raise Fail "Jscomp: Unknown binary operator"
+ | "strcmp" => "strcmp"
+ | _ => raise Fail ("Jscomp: Unknown binary operator " ^ s)
val (e1, st) = jsE inner (e1, st)
val (e2, st) = jsE inner (e2, st)