From 6635fb6ce2e1d27090249a65d0f4f21900f629d9 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 14 Sep 2012 07:13:50 -0700 Subject: [PATCH] We can assume that Instance() will never wrap nil. --- ObjectiveC/Library.mm | 3 --- 1 file changed, 3 deletions(-) diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 44eb057..7444159 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -2406,9 +2406,6 @@ static JSValueRef Instance_callAsFunction_toString(JSContextRef context, JSObjec Instance *internal(reinterpret_cast(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])); -- 2.50.0