Correct json for js #70

merged 3 commits into from Aug 24, 2012
Commits on Aug 14, 2012
  1. Add basic error handling to match the behavior of CouchDB more closely.

    dwt committed Aug 14, 2012
    If a javascript map function contains a syntax error, it is just ignored. It's views will always be empty.
    If a javascript map function throws an error when evaluating a document, that document is just ignored.
Commits on Aug 22, 2012
  1. Fix handing over json to rhino by serializing it from the native java…

    dwt committed Aug 22, 2012
    … objects first.
    Possible optimizations:
    * make the dict and array wrappers work so they convert their children on demand (Thus only what is actually accessed will be converted)
    * hand in the actual json from the db directly, that way js still has to parse it, but at least we save parsing the json from java another time