diff lib/js/urweb.js @ 1942:a671e5258a2c

Raise exception when recv()ing from someone else's channel; improve setting of client ID in RPCs
author Adam Chlipala <adam@chlipala.net>
date Fri, 27 Dec 2013 12:10:03 -0500
parents b6aee1d5b9b1
children 334b5cbff198 b2254554542f
line wrap: on
line diff
--- a/lib/js/urweb.js	Wed Dec 25 13:11:43 2013 -0500
+++ b/lib/js/urweb.js	Fri Dec 27 12:10:03 2013 -0500
@@ -1575,7 +1575,7 @@
         er("May not 'recv' in main thread of 'code' for <active>");
 
     if (chn == null)
-        return;
+        er("Client-side code tried to recv() from a channel belonging to a different page view.");
 
     if (chn < 0)
         whine("Out-of-bounds channel receive");