Skip to content

Instantly share code, notes, and snippets.

@abramadams
Created September 25, 2015 18:33
Show Gist options
  • Select an option

  • Save abramadams/9b9dec6a08a347564d72 to your computer and use it in GitHub Desktop.

Select an option

Save abramadams/9b9dec6a08a347564d72 to your computer and use it in GitHub Desktop.
<cfscript>
nil = javaCast( "null", "" );
test = {
"0 request": isNull( request )
,"01 server": isNull( server )
,"02 form": isNull( form )
,"03 url": isNull( url )
,"04 33": isNull( 33 )
,"05 {}": isNull( {} )
,"06 not_real": isNull( not_real )
,"07 test": test( javaCast("null",""), 2 )
,"08 null": isNull( null() )
,"09 null var": isNull( nil )
,"10 null value": null() // kills cf10
,"11 javacast": javaCast( "null", "" ) // kills cf10
};
writeDump([test, serializeJSON(test)]);
function null(){}
function test( a, b, c ){
return {
"arguments": isNull( arguments ),
"a": isNull( a ),
"b": isNull( b ),
"c": isNull( c )
};
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment