Created
September 25, 2015 18:33
-
-
Save abramadams/9b9dec6a08a347564d72 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
| 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