[SERVER-84525] Array.sort() is not a valid function (streams/utils.js) Created: 03/Jan/24 Updated: 09/Jan/24 Resolved: 09/Jan/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.3.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Santiago Roche | Assignee: | Santiago Roche |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
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 |