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

Throwing exceptions from cursor.map() callback crashes the shell

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.12.1
    • Affects Version/s: 0.11.0
    • Component/s: CLI Module, Shell API
    • None
    • Iteration Athens, Iteration Barcelona
    • Not Needed

      db.test.find().map(x => { throw new Error(); })
      

      interrupts the shell, because the driver doesn’t execute code in the REPL’s domain.

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

              Created:
              Updated:
              Resolved: