Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-84525

Array.sort() is not a valid function (streams/utils.js)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL

      In the jstest file: src/mongo/db/modules/enterprise/jstests/streams/utils.js, the following snippet of code calls Array.sort() instead of calling it on the array object directly. As a result, we see the error: "Array.sort() is not a valid function".

      The error is obscured by a bug in the MozJS layer that is not currently enumerating objects correctly (see SERVER-78357). Due to this bug, the code snippet is never being called, and hiding the error.

            Assignee:
            santiago.roche@mongodb.com Santiago Roche
            Reporter:
            santiago.roche@mongodb.com Santiago Roche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: