Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-305

Script debugger produces incorrect syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.2
    • None

    Description

      Consider the following script

      {while(false) {}; var x = 1;}

      The script parses correctly, but the script debugger produces the following code

      {
        while (false) {
        }  var x = 1;
      }
      

      Because the semicolon after the while is removed, the block syntax becomes invalid

      Attachments

        Activity

          People

            henrib Henri Biestro
            dmitri_blinov Dmitri Blinov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: