Title:
Bug 79352:You are supposed to be able to var anywhere, but you can't var in a for loop
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)
Created: 08/08/2009
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 246285
Priority/Frequency: Normal / Unknown
Locale/System: English / Mac 10 All
Vote Count: 1
Problem:
You are supposed to be able to var anywhere, but you can't var in a for loop.
Method:
<cfscript>function foo() {for(var i=1; i <= 10; i++) {//}return "nothing";}</cfscript>
Result:
Invalid CFML construct found on line 4 at column 9.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039615
External Customer Info:
External Company:
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 08/08/2009
Attachments:
Comments: