From 039b577f61a2bdf98abe10c5f10c8e3539a59d19 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Mon, 28 Mar 2011 10:37:49 -0400 Subject: To generate server-side source JavaScript, try both the old and new strategies; remove an unsound optimization from MonoOpt and make MonoReduce work harder to compensate --- src/jscomp.sml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/jscomp.sml') diff --git a/src/jscomp.sml b/src/jscomp.sml index 9321b9ce..ce64c11b 100644 --- a/src/jscomp.sml +++ b/src/jscomp.sml @@ -1194,10 +1194,12 @@ fun process file = in ((ELet ("x", t, e', x'), loc), st) end - handle CantEmbed t => ((*ErrorMsg.errorAt loc "Unable to embed type in JavaScript"; - Print.preface ("Type", - MonoPrint.p_typ MonoEnv.empty t);*) - (e, st))) + handle CantEmbed _ => + (jsExp m outer (e', st) + handle CantEmbed t => ((*ErrorMsg.errorAt loc "Unable to embed type in JavaScript"; + Print.preface ("Type", + MonoPrint.p_typ MonoEnv.empty t);*) + (e, st)))) | EJavaScript (m, e') => (foundJavaScript := true; -- cgit v1.2.3