Old JS engine cannot properly roundtrip NumberLong

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Trivial - P5
    • None
    • Affects Version/s: 5.3.3
    • Component/s: None
    • Query Execution
    • ALL
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              [DO NOT USE] Backlog - Query Execution
              Reporter:
              Yoon Soo Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: