projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
001fffa
)
Instance.box should have the DontEnum attribute.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Mon, 20 Jan 2014 10:28:30 +0000
(
02:28
-0800)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Mon, 20 Jan 2014 10:28:30 +0000
(
02:28
-0800)
ObjectiveC/Library.mm
patch
|
blob
|
blame
|
history
diff --git
a/ObjectiveC/Library.mm
b/ObjectiveC/Library.mm
index 81cc3a21ed77d69db0db46ab2343c840739e325c..742e3ef481e0b9857b012a17cb210ca9a3c80827 100644
(file)
--- 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);