Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2875

Add correct inspect methods for BSON Types

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • bson-4.2.1
    • None
    • None

    Description

      The previous Object.defineProperty() calls did not work because
      they did not specify a property descriptor, and even if they had
      worked, the signatures of .inspect() and .toString() would
      have mismatched, and even if they weren’t, the result would not
      have been very useful as debugging output, because it only returned
      the raw hex content of the ObjectId and not even e.g. the fact
      that this object is an ObjectId.

      Attachments

        Issue Links

          Activity

            People

              neal.beeken@mongodb.com Neal Beeken
              neal.beeken@mongodb.com Neal Beeken
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: