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

JS (v8) doesn't indent

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.4.4, 2.5.0
    • Affects Version/s: 2.3.1
    • Component/s: JavaScript, Shell
    • Labels:
      None
    • Fully Compatible
    • ALL

      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

            Assignee:
            tad Tad Marshall
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: