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

Add correct inspect methods for BSON Types

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.2.1
    • Affects Version/s: None
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved: