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: 0
Problem Description:
Passing a fat arrow function to a BIF with a default value on one of the parameters causing a parsing error.
Steps to Reproduce:
{code:java}
<cfscript>
myArr = [3,3,3]
writeDump( myArr.reduce( (acc=0,x) => {return acc+x} ) )
</cfscript>
{code}
Actual Result:
The value cfindex2ecfm554899937$func_CF_ANONYMOUSCLOSURE_444 cannot be converted to a number.
Expected Result:
9
Any Workarounds:
No
Attachments:
Comments: