X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/efce3bc9fef18190cea1aff33d8ab3f1fa6e8381..HEAD:/ObjectiveC/Library.mm diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index d0d824f..29d7be4 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -2650,9 +2650,7 @@ static JSValueRef Instance_callAsFunction_toPointer(JSContextRef context, JSObje if (!CYJSValueIsNSObject(context, _this)) return NULL; Instance *internal(reinterpret_cast(JSObjectGetPrivate(_this))); - // XXX: return CYMakePointer(context, internal->value_, sig::Object(class_getName(object_getClass(internal->value_))), NULL, object); - // XXX: return CYMakePointer(context, internal->value_, sig::Meta(), NULL, object); - return CYCastJSValue(context, reinterpret_cast(internal->value_)); + return CYMakePointer(context, internal->value_, sig::Void(true), NULL, object); } CYCatch(NULL) return /*XXX*/ NULL; } static JSValueRef Instance_callAsFunction_toString(JSContextRef context, JSObjectRef object, JSObjectRef _this, size_t count, const JSValueRef arguments[], JSValueRef *exception) { CYTry {