[COMPASS-5568] bson-transpilers tests attempt to pass arguments to shell's Date() function Created: 07/Mar/22  Updated: 12/Oct/22

Status: Ready for Work
Project: Compass
Component/s: Export to Language
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Patrick Freed Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2022-09-07 at 4.20.37 PM.png    
Sprint: Iteration Isopod, Iteration Jellyfish, Iteration Lobster

 Description   

Problem Statement/Rationale

There are several tests in native.yaml which pass arguments to the shell's Date() function, but that function does not accept any arguments and will always return the current datetime as a string.

> Date()
Mon Mar 07 2022 16:58:26 GMT-0500 (EST)
> Date("Sun, 17 Dec 1995 02:24:00 GMT")
Mon Mar 07 2022 16:58:38 GMT-0500 (EST)
> Date(819167040000)
Mon Mar 07 2022 16:58:46 GMT-0500 (EST)

These tests need to be updated or removed.



 Comments   
Comment by Maurizio Casimirri [ 10/Jun/22 ]

yep that only works with the constructor form `new Date(...)`, great catch.

jessica.sigafoos@mongodb.com can you move this to the new iteration once it will exist?

Generated at Wed Feb 07 22:40:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.