]> git.saurik.com Git - cycript.git/blobdiff - Execute.cpp
Try to push kJSClassAttributeNoAutomaticPrototype.
[cycript.git] / Execute.cpp
index 81bd6ec35885585941bd86711163ff46db769725..b2397d8e6561c9be36e01bb85cfd16178e6f2fed 100644 (file)
@@ -2132,6 +2132,7 @@ void CYInitializeDynamic() {
     JSClassDefinition definition;
 
     definition = kJSClassDefinitionEmpty;
+    definition.attributes = kJSClassAttributeNoAutomaticPrototype;
     definition.className = "All";
     definition.staticFunctions = All_staticFunctions;
     definition.hasProperty = &All_hasProperty;
@@ -2140,6 +2141,7 @@ void CYInitializeDynamic() {
     All_ = JSClassCreate(&definition);
 
     definition = kJSClassDefinitionEmpty;
+    definition.attributes = kJSClassAttributeNoAutomaticPrototype;
     definition.className = "Context";
     definition.finalize = &CYFinalize;
     CYPrivate<Context>::Class_ = JSClassCreate(&definition);