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

Javascript shell does not escape quotes in field names

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • Shell
    • None

    Description

      > x = {}
      { }
      > x['":false,"'] = '"'
      "
      > x
      { "":false,"" : "\"" }
      > interpreterVersion()
      SpiderMonkey 1.7
      

      > x = {}
      { }
      > x['":false,"'] = '"'
      "
      > x
      { "":false,"" : "\"" }
      > interpreterVersion()
      V8 3.12.19
      

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            sverch Shaun Verch
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: