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

Properly display objects created with a property object

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • No version
    • None
    • None
    • None
    • Not Needed

    Description

      > var x = Object.create(null, { x: { value: 34 }})
      > x
      [object]

      Instead of just displaying '[object]', we can display the property object contents by using Object.getOwnPropertyNames( x ).

      Attachments

        Activity

          People

            backlog-shell-v2 Backlog - Shell Team
            benjamin.becker Ben Becker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: