console returning an error for lines terminated in equals (=)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.4
    • Affects Version/s: 1.6.3, 1.6.4
    • Component/s: JavaScript
    • None
    • Environment:
      Windows 7
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If I put the following jacascript in the console:
      var SomeEvent = db.events.findOne(

      { Name: 'Some stupid event' }

      );
      SomeEvent.Summary =
      "Some Text.\r\n\r\n" +
      "Some more text.";
      db.events.save(SomeEvent);
      db.events.findOne(

      { Name: 'Some stupid event' }

      );
      I get the following:
      > var SomeEvent = db.events.findOne(

      { Name: 'Some stupid event' }

      );
      > SomeEvent.Summary =

      Expected behavior of the shell would be to hold the line ending in equals in a buffer and append the next line to it before executing.

              Assignee:
              Tony Hannan (Inactive)
              Reporter:
              Justin Dearing
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: