-
Type: Bug
-
Resolution: Unresolved
-
Priority: Trivial - P5
-
None
-
Affects Version/s: 5.3.3
-
Component/s: None
-
Query Execution
-
ALL
-
0
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