Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Bradley W. / ()
Created: 09/24/2019
Components: Language, Closures
Versions: 2018
Failure Type: Crash
Found In Build/Fixed In Build: Update 5 / CF2018U6
Priority/Frequency: Normal / Some users will encounter
Locale/System: / Platforms All
Vote Count: 1
Problem Description:
Fat arrow UDFs do not always parse correctly, causing errors.
Steps to Reproduce:
{code:java}
func = x => { x=x+1; }
writeDump( func(5) )
{code}
Actual Result:
Code parsing error:
Invalid CFML construct found on line x at column y.
ColdFusion was looking at the following text: =
Expected Result:
undefined (since there is no return statement in the body of the UDF)
Any Workarounds:
None
Attachments:
Comments: