We're updating the issue view to help you get more done. 

isCustomFunction() behaviour for arrow functions should match that for conventional function-literal syntax

Description

SSIA, really.

isCustomFunction() returns false for function-literal syntax, but true for arrow function syntax. This makes no sense. I realise Lucee is mimicking ColdFusion for the response for function literals, but this needs to be either fixed in Lucee, or followed in Lucee. Not half and half.

Repro code (from https://github.com/daccfml/scratch/blob/master/blogExamples/lucee/5/lambda/identify.cfm):

````
// identify.cfm

function f(x,y){
return x*y
}

g = function(x,y) {
return x*y
}

h = (x,y) -> x*y

dump(var={
isCustomFunction=isCustomFunction(f),
isClosure=isClosure(f)
}, label="Function statement")

dump(var={
isCustomFunction=isCustomFunction(g),
isClosure=isClosure(g)
}, label="Function expression")

dump(var={
isCustomFunction=isCustomFunction(h),
isClosure=isClosure(h)
}, label="Arrow function")
````

Output:
Function Statement
isClosure: false
isCustomFunction: true

Function expression:
isClosure: true
isCustomFunction: false

Arrow function:
isClosure: false
isCustomFunction: true

Environment

None

Status

Assignee

Unassigned

Reporter

Adam Cameron

Labels

None

Fix versions

Priority

Major