From: Jay Freeman (saurik) Date: Mon, 20 Jan 2014 10:28:30 +0000 (-0800) Subject: Instance.box should have the DontEnum attribute. X-Git-Tag: v0.9.500~28 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/cdff65f8e03d25cd3f782b264e15e596d2259857 Instance.box should have the DontEnum attribute. --- diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 81cc3a2..742e3ef 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -2976,7 +2976,7 @@ void CYObjectiveC_SetupContext(JSContextRef context) { CYPoolTry { CYSetProperty(context, cycript, CYJSString("objc_super"), Super); JSObjectRef box(JSObjectMakeFunctionWithCallback(context, CYJSString("box"), &Instance_box_callAsFunction)); - CYSetProperty(context, Instance, CYJSString("box"), box); + CYSetProperty(context, Instance, CYJSString("box"), box, kJSPropertyAttributeDontEnum); #ifdef __APPLE__ CYSetProperty(context, all, CYJSString("choose"), &choose, kJSPropertyAttributeDontEnum);