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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
              Reporter:
              Anna Henningsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: