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

Async rewriter is confused by comments

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.10.0
    • Affects Version/s: 0.9.0
    • Component/s: AsyncWriter
    • Labels:
      None
    • Not Needed
    • Iteration Yucca

      Enterprise replset [direct: primary]> print()
      
      
      Enterprise replset [direct: primary]> print() // X
      Uncaught:
      SyntaxError: await is only valid in async function
      

      …what?

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

              Created:
              Updated:
              Resolved: