News for hackers. Stuff that matters.
Re:JavaScript Promises: There and back again by coderzach on Tuesday December 17, 2013 @12:58PM (#6922565)
That's why node modules generally don't throw exceptions, but rather pass them as the first argument to the callback.

I think you can catch async errors if you call the throw method on the generator.

http://wiki.ecmascript.org/doku.php?id=harmony:generators#me...

There are no comments on this comment yet.