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

Double quote escaping bugged

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 2.5.0
    • 2.1.0
    • Shell
    • Fully Compatible
    • ALL

    Description

      This is not allowed :

      a =

      {s:"\""}

      db.test.save(

      {s:"\""}

      )

      This is allowed :

      a = "\""
      db.test.save(

      {s:a}

      )

      Shouldn't all of the above work (it does in all other JavaScript contexts I'm aware of).

      Attachments

        Activity

          People

            tad Tad Marshall
            remonvv Remon van Vliet
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: