Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1735

Cannot pass invalid date values through node-runtime-worker-threads

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Bson, Embedded Shell
    • None
    • Developer Tools

      This fails:

      // throws in JS
      EJSON.deserialize(EJSON.serialize({a:new Date(2**60)}))
      

      And so BSON date values that are not valid JS date values cannot currently be read from the database in the Compass embedded shell.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: