-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The following code, when pasted into the shell, yields the error message "map invoke failed: JS Error: ReferenceError: qqqqqq is not defined nofile_b:1" even though the variable "qqqqqq" has the value "Clem" when the map function is run.
example.js
var m = function(qqqqqq) { return function() { emit("foo", qqqqqq); }; }; var r = function(k, v) { return {} }; db.tmp.save({}); db.tmp.mapReduce( m("Clem"), r, { "out": "tmp" } );