[dojo-contributors] Async Errors...

Mike Wilcox mike at mikewilcox.net
Mon Jun 4 17:48:21 EDT 2012


As it is currently set up, the parser defaults to async. There is no opt in or opt out.

By default, it should parse sync. Then a dev doesn't have to figure out where his errors went. If he opts into async, then things are different.

Mike Wilcox
http://clubajax.org
mike at mikewilcox.net



On Jun 4, 2012, at 4:39 PM, Bill Keese wrote:

> I guess that depends what you mean by "catch".   We could add a console.error() by default, but it the application actually wants to catch the error and handle it, and the parser is running asynchronously, then the application would need to register an errback, just like for any other asynchronous operation (ex: an XHR).
> 
> On Tue, Jun 5, 2012 at 6:32 AM, Mike Wilcox <mike at mikewilcox.net> wrote:
> Bill, you're not suggesting that the dev needs to attach error handlers to the parser to catch syntax errors, are you?
> 
> Mike
> 
> 
> On Jun 4, 2012, at 4:05 PM, Bill Keese wrote:
> 
>> I don't really understand the question though; it seems like we don't need to do anything, that it's the app's responsibility to add an errback listener to the Promise.
> 
> 
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors
> 
> 
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20120604/0bb81365/attachment-0001.htm 


More information about the dojo-contributors mailing list