Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-916

Async rewriter doesn’t handle completion records around variable declarations properly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.5
    • Affects Version/s: None
    • Component/s: AsyncWriter
    • None
    • 3
    • Not Needed
    • Iteration Hamburg

      In the Node.js REPL:

      > let a = 10;
      undefined
      > var b = 100;
      undefined
      > 'foo'; let c = 12;
      'foo'
      > 'foo'; var d = 9;
      'foo'
      

      in mongosh:

      > let a = 10;
      
      > var b = 100;
      
      > 'foo'; let c = 12;
      
      > 'foo'; var d = 9;
      9
      

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: