-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
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.
- is related to
-
SERVER-78357 Object.entries does not return lazy properties that were not previously resolved for JS Object-BSON/BSONInfo
- Closed
-
SERVER-62177 Implement non-standard Array class functions for backwards compatibility
- Backlog