substack/js-traverse — pull request #20 by joeferner (2012-02-27 22:34:36+00:00)
Title: Errors not being traversed correctly.

Currently when calling Traverse on an Error object the results become an empty hash ({}). This is because all of javascript's Error properties are hidden.

I traced this error back to js-traverse from dnode. Currently in dnode if a method has a callback and it calls that callback with an Error object the error is not sent to the client, instead an empty object is returned.

I did not map the "stack", "arguments", or "type" properties of Error. I wanted to open the discussion on how Errors should be handled.