Created
September 7, 2017 15:12
-
-
Save anonymous/807fc8919dd9d5899c7f5c15b301e6af to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// Works | |
function doSomething() { | |
ArrayFilter( arguments, function() { | |
return true; | |
} ); | |
} | |
doSomething( 'foo', 'bar' ); | |
// Doesn't work | |
// can't cast [foo] string to a number value on line xx | |
function doSomething2( foo, bar ) { | |
ArrayFilter( arguments, function() { | |
return true; | |
} ); | |
} | |
doSomething2( 'foo', 'bar' ); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment