Mercurial > urweb
diff src/jscomp.sml @ 1404:82b204f20026
Patch from Vladimir Shabanov to support implicit passing of 'time' values from server to client
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 20 Jan 2011 10:40:40 -0500 |
parents | 449a12b82db7 |
children | 07ef5771568d |
line wrap: on
line diff
--- a/src/jscomp.sml Tue Jan 18 13:32:48 2011 -0500 +++ b/src/jscomp.sml Thu Jan 20 10:40:40 2011 -0500 @@ -311,6 +311,7 @@ | TFfi ("Basis", "string") => ("uu(t[i++])", st) | TFfi ("Basis", "char") => ("uu(t[i++])", st) | TFfi ("Basis", "int") => ("parseInt(t[i++])", st) + | TFfi ("Basis", "time") => ("parseInt(t[i++])", st) | TFfi ("Basis", "float") => ("parseFloat(t[i++])", st) | TFfi ("Basis", "channel") => ("(t[i++].length > 0 ? parseInt(t[i-1]) : null)", st)