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

Object.create(null) throws

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0-rc0
    • Affects Version/s: 2.3.2
    • Component/s: JavaScript
    • Labels:
      None
    • Environment:
      osx 10.7.5
    • ALL
    • Hide

      see description

      Show
      see description

      var a = Object.create(null); 
      a
      

      throws exception:

      Fri Dec 28 16:08:39.103 exec error: src/mongo/shell/utils.js:1051 TypeError: Object object has no method 'toString'
      if ( x.toString() == "[object MaxKey]" )
      

            Assignee:
            benjamin.becker Ben Becker
            Reporter:
            aheckmann Aaron Heckmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: