Mercurial > urweb
view tests/jserror.ur @ 1430:36c0a1be3f5a
Allow debug and naughtyDebug in client-side code, implemented with alert
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Wed, 02 Mar 2011 18:35:03 -0500 |
parents | ba4c230b7231 |
children |
line wrap: on
line source
fun main () : transaction page = return <xml> <body onload={onError (fn s => alert ("There was an error: " ^ show s)); error <xml>Badder</xml>}/> </xml>