JeffreyZhao / wind

Asynchronous flow control in JavaScript, with JavaScript.
http://windjs.org/
1.54k stars 238 forks source link

Keep error information like stacktraces in custom errors #68

Open JeffreyZhao opened 12 years ago

JeffreyZhao commented 12 years ago

Now the current errors (CanceledError, AggregateError) are custom classes without detail stacktrace information. We need to make it a more standard error. The easiest way is to set the prototype to a new Error.