comparison 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
comparison
equal deleted inserted replaced
1403:860c245a7c4d 1404:82b204f20026
309 end 309 end
310 310
311 | TFfi ("Basis", "string") => ("uu(t[i++])", st) 311 | TFfi ("Basis", "string") => ("uu(t[i++])", st)
312 | TFfi ("Basis", "char") => ("uu(t[i++])", st) 312 | TFfi ("Basis", "char") => ("uu(t[i++])", st)
313 | TFfi ("Basis", "int") => ("parseInt(t[i++])", st) 313 | TFfi ("Basis", "int") => ("parseInt(t[i++])", st)
314 | TFfi ("Basis", "time") => ("parseInt(t[i++])", st)
314 | TFfi ("Basis", "float") => ("parseFloat(t[i++])", st) 315 | TFfi ("Basis", "float") => ("parseFloat(t[i++])", st)
315 | TFfi ("Basis", "channel") => ("(t[i++].length > 0 ? parseInt(t[i-1]) : null)", st) 316 | TFfi ("Basis", "channel") => ("(t[i++].length > 0 ? parseInt(t[i-1]) : null)", st)
316 317
317 | TFfi ("Basis", "bool") => ("t[i++] == \"1\"", st) 318 | TFfi ("Basis", "bool") => ("t[i++] == \"1\"", st)
318 319