Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7892

JS (v8) doesn't indent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.4.4, 2.5.0
    • Component/s: JavaScript, Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      If you do

      > db.runCommand
      function ( obj ){
      if ( typeof( obj ) == "string" ){
      var n = {};
      n[obj] = 1;
      obj = n;
      }
      return this.getCollection( "$cmd" ).findOne( obj );
      }

      The output is not indented.

      This worked with spidermonkey

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: