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

Double quote escaping bugged

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.5.0
    • Affects Version/s: 2.1.0
    • Component/s: Shell
    • Fully Compatible
    • ALL

      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).

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

              Created:
              Updated:
              Resolved: