Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 02/25/2014
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: PublicBeta /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 0
See http://cfmlblog.adamcameron.me/2014/02/coldfusion-11-map-and-reduce.html
In CF10 one did not NEED to specify the arguments in the callback definition for arrayEach(), this would be fine:
{code}
letters = ["a","b","c","d"];
arrayEach(letters, function(){
writeDump(arguments);
});
{code}
In CF11, this code does not do anything. One NEEDS to specify at least the value argument, eg:
letters = ["a","b","c","d"];
arrayEach(letters, function(v){ // note how I'm now specifying the v there
writeDump(arguments);
});
This is a regression. And I should not need to specify it anyhow.
listEach() (new to CF11) also suffers from this.
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3713035
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: