Compilation glitch with []

Description

Repro:

<cfscript> function f(){ return []; } </cfscript>

Works on Lucee 4.5, doesn't work on Lucee 5. It's the [] that's causing it grief, it seems. Other values, including {} seem fine

Environment

None

Activity

Show:

Brad Wood 28 August 2015 at 05:05

Same here. ContentBox won't run due to having code like

return [];

Alex Skinner 27 August 2015 at 14:26

Hi,

We're bumping into this on getting PresideCMS working on 5

It seems its explicitly the return thats the problem

<cfscript>
a=[];

function f (){
return [];
}

b="[]";

</cfscript>

<cfdump var="#[]#" label="blank array">

<cfdump var="#evaluate(b)#">

Fixed

Details

Assignee

Reporter

Priority

Labels

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 25 May 2015 at 13:08
Updated 5 October 2015 at 09:27
Resolved 5 October 2015 at 09:27

Flag notifications