diff lib/js/urweb.js @ 1630:4798ad652c94

Stop [read] from raising an exception for invalid [int] strings
author Adam Chlipala <adam@chlipala.net>
date Sun, 04 Dec 2011 15:13:53 -0500
parents 438561303d02
children 747f94ac5fc2
line wrap: on
line diff
--- a/lib/js/urweb.js	Sun Dec 04 14:40:12 2011 -0500
+++ b/lib/js/urweb.js	Sun Dec 04 15:13:53 2011 -0500
@@ -972,7 +972,7 @@
     if (s == "0")
         return s;
     else
-        er("Can't parse int: " + s);
+        return {};
 }
 
 function pi(s) {