Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-3065

Semi-colon required before array literal

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 4.2.0.009
    • Fix Version/s: None
    • Labels:
      None

      Description

      This works:

      <cfscript>
      start = getTickCount(); // semi colon here
      ["tahi","rua","toru","wha"].each(function(v,i){
      	echo("#i#:#v#<br>")
      })
      echo("execution time: #getTickCount()-start#ms")
      </cfscript>
      

      This errors:

      <cfscript>
      start = getTickCount() // no semi colon here
      ["tahi","rua","toru","wha"].each(function(v,i){
      	echo("#i#:#v#<br>")
      })
      echo("execution time: #getTickCount()-start#ms")
      </cfscript>
      

      Error:

      Railo 4.2.0.009 Error (template)
      Message Invalid Syntax Closing []] not found

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: