Some JavaScript syntax errors cause mongosh to report them as mongosh bugs

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.14.0
    • Affects Version/s: 0.13.1
    • Component/s: CLI Module
    • None
    • Iteration Chicago
    • Not Needed

      In mongosh 0.13.1 paste in following malformed javascript code and press enter:

       

      var pipeline = [
       {$bucketAuto": {
         "groupBy": "$favColour",
         "buckets": 2,
       }},
      ];

       

      (missing a double quote " before $bucketAuto)

      mongosh thinks this is its own fault when it isn't and prints out:

      This is an error inside Mongosh. Please file a bug report for the MONGOSH project here: https://jira.mongodb.org.

       

       

            Assignee:
            Michael Rose (Inactive)
            Reporter:
            Paul Done
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: