comparison lib/js/urweb.js @ 1889:c40ed80be943

Fix regression in execution of 'onError' handlers
author Adam Chlipala <adam@chlipala.net>
date Thu, 14 Nov 2013 06:16:58 -0500
parents e15234fbb163
children abb0e95dcaa1
comparison
equal deleted inserted replaced
1888:5f478ecf65e4 1889:c40ed80be943
374 if (!lameDuck) { 374 if (!lameDuck) {
375 if (ls == null) 375 if (ls == null)
376 alert(kind + ": " + arg); 376 alert(kind + ": " + arg);
377 for (; ls; ls = ls.next) 377 for (; ls; ls = ls.next)
378 try { 378 try {
379 exec({c:"a", f:{c:"a", f:ls.data, x:{c:"c", v:arg}}, x:{c:"c", v:null}}); 379 exec({c:"a", f:{c:"a", f:{c:"c", v:ls.data}, x:{c:"c", v:arg}}, x:{c:"c", v:null}});
380 } catch (v) { } 380 } catch (v) { }
381 } 381 }
382 } 382 }
383 383
384 var errorHandlers = null; 384 var errorHandlers = null;