[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:
Related
is related to SERVER-78357 Object.entries does not return lazy p... Closed
is related to SERVER-62177 Implement non-standard Array class fu... Backlog
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 SERVER-78357). Due to this bug, the code snippet is never being called, and hiding the error.


Generated at Thu Feb 08 06:55:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.