Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.7.2, 0.8
-
None
Description
Whenever a view emits an array containing undefined as a key an Erlang is thrown:
For example, if there's at least one document in the db without foo being set, the following view
function(doc) {
emit([doc.foo], doc);
}
triggers
nocatch,{bad_value,"Cannot encode 'undefined' value as JSON",
[
,
,
,
,
,
,
]}
OTOH,
function(doc) {
emit(doc.foo, doc);
}
causes no problems.