From 4ee70134cbce203ffb3c5d6b163eba4474e29ad7 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 3 Jun 2012 14:50:00 -0700 Subject: [PATCH] Use the base JavaScript CYONifier for CYJSArray. --- ObjectiveC/Library.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 10ce9cd..f5fdb28 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -1231,6 +1231,11 @@ JSValueRef CYCastJSValue(JSContextRef context, NSObject *value) { CYPoolTry { @implementation CYJSArray +- (NSString *) cy$toCYON { + CYPool pool; + return [NSString stringWithUTF8String:CYPoolCCYON(pool, context_, object_)]; +} + - (id) initWithJSObject:(JSObjectRef)object inContext:(JSContextRef)context { CYObjectiveTry { if ((self = [super init]) != nil) { object_ = object; -- 2.45.2