BulkWriteError and WriteCommandError capture less info in MozJS than v8

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.1.7
    • Affects Version/s: 3.1.7
    • Component/s: Shell
    • None
    • Fully Compatible
    • ALL
    • Platform 7 08/10/15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      BulkWriteError and WriteCommandError called captureStackTrace under v8, which provided a more detailed stack trace than the native one we get by inheriting from Error.

      In particular, captureStackTrace():

      • actually generates a stack from our error constructors, rather than using an out of date one from assignment of the BulkWriteError.prototype
      • adds the stringification of the custom error type to the .stack property

            Assignee:
            Mira Carey
            Reporter:
            Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: