]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Library.mm
We can assume that Instance() will never wrap nil.
[cycript.git] / ObjectiveC / Library.mm
index 44eb0570c8f09fcdc907082cbb85c707ec59f01d..74441590be19855005b9b4db4185683416a47cee 100644 (file)
@@ -2406,9 +2406,6 @@ static JSValueRef Instance_callAsFunction_toString(JSContextRef context, JSObjec
     Instance *internal(reinterpret_cast<Instance *>(JSObjectGetPrivate(_this)));
     id value(internal->GetValue());
 
-    if (value == nil)
-        return CYCastJSValue(context, "nil");
-
     CYPoolTry {
         // XXX: this seems like a stupid implementation; what if it crashes? why not use the CYONifier backend?
         return CYCastJSValue(context, CYJSString(context, [value description]));