diff tests/jserror.ur @ 726:6fc633d990e7

onError
author Adam Chlipala <adamc@hcoop.net>
date Thu, 16 Apr 2009 12:36:01 -0400
parents
children ba4c230b7231
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/jserror.ur	Thu Apr 16 12:36:01 2009 -0400
@@ -0,0 +1,3 @@
+fun main () : transaction page = return <xml>
+  <body onload={onError (fn s => alert "There was an error."); error <xml>Badder</xml>}/>
+</xml>