-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: JavaScript, MapReduce
-
None
-
Query Execution
-
ALL
-
Because ES6 arrow functions (aka lambdas) do not bind this (see Arrow functions), they do not work with the map-reduce framework in MongoDB.
For many people, lamdbas are seen as a more concise syntax and do not realize they behave differently. Either we should improve map-reduce to support ES6 arrow functions or clearly document that they are not supported (and why) in the map portion of map-reduce.
- related to
-
SERVER-50614 JS 'Set' type does not serialize well to BSON
- Backlog
-
SERVER-46243 Support ES6 Map object in MongoDB shell
- Backlog
-
SERVER-31551 Create a test which enumerates the objects available in server side JS environments
- Closed