Details
-
Bug
-
Resolution: Unresolved
-
Trivial - P5
-
None
-
5.3.3
-
None
-
Query Execution
-
ALL
-
6
Description
It seems that the old JS engine does not return correct result for the following expression.
function accumulate(state, input) {
|
return input > state ? input : state; |
}
|
Input params are state = '' (empty string) and input = NumberLong(1). The old engine returns {} and the new engine returns NumberLong(1). If input is 1.0, then both engines return 1.0