CFLint
CFLint copied to clipboard
Parse Error with unquoted negative value for case statement
with 1.4.1,
the -1 value causes a parse error, adding quotes around the -1 fixes it
<cfscript>
function doSomething(id){
switch (id){
case -1:
return "new";
default:
return "existing";
}
}
</cfscript>
depends on https://github.com/cfparser/cfparser/issues/127 moving to next milestone