tracker issue : CF-4152461

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] ER for: prepend member function should return a useful value

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 05/12/2016

Components: Language, Member Functions

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF2016_Final / CF 2018 Final Build

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win All

Vote Count: 1

3844976 fixed .append() member functions to return a useful value for chaining. Same should be done for .prepend().

Repro:

<cfscript> 
 a = ["b", "c", "d"];
 a.prepend("a").each(function(e) {writeOutput(e);});
</cfscript>

Actual behavior: "The each method was not found."

Expected behavior: "abcd"

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4152461

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:

Attachments:

Comments:

Additional related tickets: CF-4152447,CF-4152465,CF-4152471
Comment by External U.
2846 | May 12, 2016 11:18:26 PM GMT
This has been fixed in CF 2018 so closing the bug.
Comment by Suchika S.
30536 | March 19, 2019 10:01:27 AM GMT